用于 CasperJS 的简单 PHP 封装
php-casperjs is a simple PHP wrapper for the fine library CasperJS designed to automate user testing against web pages.
It is easy to integrate into PHPUnit test case.
Making webcrawler has never been so easy!
Before using php-casperjs, you need to install both library:
1 - PhantomJS http://phantomjs.org/download.html
2 - CasperJS http://docs.casperjs.org/en/latest/installation.html
npm install phantomjs
npm install casperjsthen
composer require phpcasperjs/phpcasperjs…If you want to see your crawler in action, set the engine to slimerjs
$casper = new Casper();
$casper->setOptions(['engine' => 'slimerjs']);暂无开放 Issues,或尚未同步最近议题。