lawondyss/canterville

A PHP headless browser.

0.4 2015-10-30 23:15 UTC

This package is auto-updated.

Last update: 2024-10-17 22:53:04 UTC


README

Canterville is library for work with web pages without browser. Browser here is PhantomJS or SlimerJS controlled using CasperJS. All libraries is auto installed.

WARNING: SlimerJS required Firefox.

Installation

Over Composer, required lawondyss/canterville.

For installation PhantomJS, SlimmerJS and/or CasperJS include to your composer.json file code to section scripts.

Example installation CasperJS with PhantomJS:

  "scripts": {
    "post-install-cmd": [
      "Canterville\\Installer::casperOnPhantom"
    ],
    "post-update-cmd": [
      "Canterville\\Installer::casperOnPhantom"
    ]
  }

Options

  • Installer::casperOnPhantom
  • Installer::casperOnSlimer
  • Installer::casper
  • Installer::phantom
  • Installer::slimer