Selenium Automation with Php
Most people may wonder whether it’s possible.Yes it’s possible and there is a webdriver written by Facebook for selenium with Php and you can find it over here – https://github.com/facebook/php-webdriver
Follow the below steps to get started
Step 1: Install using composer
Step 2: Run this command “php composer.phar require facebook/webdriver”
Step 3: Then include the below code
//PHP with Selenium
namespace Facebook\WebDriver;
require_once('vendor/autoload.php');
use Facebook\WebDriver\Chrome\ChromeDriver;
putenv("webdriver.chrome.driver=ChromeDriver.exe");
$host = 'http://localhost:9515';
$driver = ChromeDriver::start();
sleep(3);
$driver->get("http://www.google.com");