peridot

(( gitHubWatchers )) (( gitHubStars )) (( gitHubForks ))

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

Installation

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

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)

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)

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