php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

Execute PhantomJS commands through PHP

Results 102 php-phantomjs issues
Sort by recently updated
recently updated
newest added

Hi! Help me! **php:** ` $location = __DIR__ . DIRECTORY_SEPARATOR .'custom'; $serviceContainer = ServiceContainer::getInstance(); $procedureLoader = $serviceContainer->get('procedure_loader_factory') ->createProcedureLoader($location); $client = Client::getInstance(); $client->getEngine()->setPath(__DIR__ . '/bin/phantomjs.exe'); $client->getProcedureLoader()->addLoader($procedureLoader); $client = Client::getInstance(); $client->getProcedureLoader()->addLoader($procedureLoader); $client->setProcedure('click');...

I appreciate the possibility to request a certain url on the Internet. However, I wonder if it is possible to pipe some HTML directly to the phantomJS via this php-phantomjs...

enhancement

works: ``` { "message": "Successfuly!", "status_code": 200, "data": [ "https://kid.nbfuli.top/storage/capture/5bfde9e972bfc.jpg", "https://zhidao.baidu.com/question/1241254892809348899.html" ] } ``` not work: ``` { "message": "Successfuly!", "status_code": 200, "data": [ "https://kid.nbfuli.top/storage/capture/5bfd40ac9f9c3.jpg", "https://kid.nbfuli.top/storage/capture/html/5bfd40ac9d669.html" ] } ``` my...

I use [Custom Scripts](http://jonnnnyw.github.io/php-phantomjs/4.0/4-custom-scripts/). The `.proc` file work well, But the `.php` file don't works. You can see all files below and results. > PHP 7.0.4 > phantomjs 2.1.1 >...

jonnyw/php-phantomjs (v4.6.1) File could not be written to system as target is not writable: /tmp/dd5ca8b3b0eb4871f0c5 in /framework/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Cache/FileCache.php at line 65 I tried: $ client-> setTempDir ("....."); I did not help...

Hi, I get the following error when running `composer install` on a FreeBSD server. ``` [RuntimeException] The Installer could not select a PhantomJS package for this OS. Please install PhantomJS...

On some of my server a have this error: Warning: Declaration of JonnyW\PhantomJs\DependencyInjection\ServiceContainer::load() should be compatible with Symfony\Component\DependencyInjection\Container::load($file) in /var/www/html/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/DependencyInjection/ServiceContainer.php on line 20 PHP version: 7.2

Hi. i want to know How to add userName and password; such as "$request->addSetting('userName','......');"? or "$request->addHeader('userName','......');"? which is correct?