custom-phantomjs-location.php 183 B

12345678
  1. <?php
  2. require '../vendor/autoload.php';
  3. use JonnyW\PhantomJs\Client;
  4. $client = Client::getInstance();
  5. $client->setPhantomJs('/path/to/phantomjs'); // PhantomJS executbale file path