Download the PHP package jerome-breton/casperjs-installer without Composer

On this page you can find all versions of the php package jerome-breton/casperjs-installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package casperjs-installer

casperjs-installer

Latest Stable Version Total Downloads Latest Unstable Version Build Status License

A Composer package which installs the CasperJS and PhantomJS binary (Linux, Windows, Mac) into the bin path of your project.

Installation

To install CasperJS and PhantomJS as a local, per-project dependency to your project, simply add a dependency on jerome-breton/casperjs-installer to your project's composer.json file.

For a development dependency, change require to require-dev.

The version number of the package specifies the CasperJS version! But for now, no versions of PhantomJS are prebuilt for 1.0. versions, so for now, only dev-master is working, and will fetch the last 1.9. PhantomJS version.

The download source used is: https://github.com/n1k0/casperjs/zipball/master

You can set the Composer configuration directive bin-dir to change the vendor binaries installation folder. Important! Composer will install the binaries into vendor\bin by default.

The scripts section is necessary, because currently Composer does not pass events to the handler scripts of dependencies. If you leave it away, you might execute the installer manually.

Now, assuming that the scripts section is set up as required, CasperJS and PhantomJS binary will be installed into the bin folder and updated alongside the project's Composer dependencies.

How does this work internally?

  1. Fetching the CasperJS Installer In your composer.json you require the package "casperjs-installer". The package is fetched by composer and stored into ./vendor/jerome-breton/casperjs-installer. It contains only one file the CasperJsInstaller\\Installer.

  2. Fetching PhantomJS This installer depends on jakoch/phantomjs-installer to install PhantomJS and follows the same strategy. This project has been created with major part of Jakoch work. The CasperJsInstaller will call Jakoch's PhantomJSInstaller\\Installer.

  3. Platform-specific download of PhantomJS The PhantomInstaller\\Installer is run as a "post-install-cmd". That's why you need the "scripts" section in your "composer.json". The installer creates a new composer in-memory package "casperjs" and downloads the correct Phantom version to the folder ./vendor/jerome-breton/casperjs. All CasperJS files reside there, especially the samples.

  4. Installation into bin folder A launcher is created to declare PhantomJS path and launch CasperJS from ./vendor/jerome-breton/casperjs to your composer configured bin-dir folder.

All versions of casperjs-installer with dependencies

PHP Build Version
Package Version
Requires ext-openssl Version *
jakoch/phantomjs-installer Version 1.9.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jerome-breton/casperjs-installer contains the following files

Loading the files please wait ....