Download the PHP package peridot-php/peridot-watcher-plugin without Composer

On this page you can find all versions of the php package peridot-php/peridot-watcher-plugin. 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 peridot-watcher-plugin

Peridot Watcher Plugin

Build Status HHVM Status

Watch for changes in your Peridot tests and re run them when a change occurs.

Peridot watcher

Usage

We recommend installing this plugin to your project via composer:

You can register the plugin via your peridot.php file.

Registering the plugin will make a --watch option available to the Peridot application:

File events

By default, the watcher plugin will look for a "file changed" event, but you can configure the plugin to listen for the following events:

Tracking additional paths

By default, the watcher plugin just monitors the test path. If you want to track additional paths, you can do so in your peridot.php file:

File criteria

The watcher will look for changes in files ending in .php by default. If you want to track additional file types, you can add criteria as regular expressions in your peridot.php file:

Using the above, you can re run your tests when the source file changes. Since the Peridot watcher re runs your tests in a sub-process, it will actually detect new changes in your source.

Example specs

Feel free to play around with the example spec using the watch option:

Running plugin tests

Inotify support

The watcher plugin will leverage the Inotify extension if it is available, otherwise it will use a recursive directory strategy to watch for changes.

Note on IDEs

Some IDEs might choke on ANSI sequences being returned from the watcher process. PHPStorm does not render colors from sub process output, but most terminals will. If using the terminal from your IDE is a must, you may want to run your tests using the --no-colors option.


All versions of peridot-watcher-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
peridot-php/peridot Version ^1
henrikbjorn/lurker Version ^1
symfony/process Version ^2|^3
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 peridot-php/peridot-watcher-plugin contains the following files

Loading the files please wait ....