Sublime PhantomJS service.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Tests
.gitattributes
Arguments.php
Options.php
PhantomJS.php
README.md
composer.json

README.md

Sublime Service: PhantomJS

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();