peridot

Author(s)
Brian Scaturro, Austin Morris
Website
http://peridot-php.github.io/
License
MIT
Wiki
https://github.com/peridot-php/peridot/wiki
Documentation
http://peridot-php.github.io/docs/
GitHub
peridot-php/peridot
Packagist
peridot-php/peridot

0 0 0

peridot is an highly extensible, highly enjoyable, BDD testing framework for PHP.

Installation

Install from a Composer package as a dev dependency (with Composer)

Check if all dependencies are installed: .

Make sure you have Composer installed.

Require it as a dev dependency:
composer require --dev peridot-php/peridot
Run it:
php vendor/bin/peridot

Install from a Composer package as a global CLI utility (with Composer)

Check if all dependencies are installed: .

Make sure you have Composer installed.

Require it as a global CLI utility:
composer global require peridot-php/peridot
Run it:
peridot
Make sure your global vendor binaries directory is in your $PATH environment variable. Check the Composer documentation for more information.

Install from a PHP Archive (with curl or wget)

Check if all dependencies are installed: .

The PHPUnit documentation has a clear manual on how to install PHARs on Windows.

If you have the Suhosin extension enabled, make sure to allow the execution of PHARs in your php.ini:
suhosin.executor.include.whitelist = phar

Locally
Download it:
wget -O peridot.phar https://peridot-php.github.io/downloads/peridot.phar
or
curl -sSL https://peridot-php.github.io/downloads/peridot.phar -o peridot.phar
Use it:
php peridot.phar
Globally
Download it:
wget -O peridot.phar https://peridot-php.github.io/downloads/peridot.phar
or
curl -sSL https://peridot-php.github.io/downloads/peridot.phar -o peridot.phar
Install it as an executable:
chmod a+x peridot.phar
sudo mv peridot.phar /usr/local/bin/peridot
Use it:
peridot