sublime / phantomjs
Sublime PhantomJS service
Installs: 3 146
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/sublime/phantomjs
This package has no released version yet, and little information is available.
README
Sublime\Service\PhantomJS is a simple service wrapping "library" I am writing around PhantomJS.
I expect to release "command packs" for PhantomJS that utilize this library for use in Sublime-based applications. Or something like that. You could just use it without all that fun stuff!
Example
Example usage:
use Sublime\Service\PhantomJS;
$phantom = new PhantomJS\PhantomJS();
$phantom->options->setCacheSize(4096)->ignoreCertErrors(true);
$phantom->arguments->setScript('/opt/phantomjs-1.6.1/examples/rasterize.js')
->add('http://www.google.com/')
->add('google.pdf');
$phantom->execute();