Installing

PHPBench can be installed either as dependency for your project or as a global package.

Composer Install

To install PHPBench as a dependency of your project:

$composerrequirephpbench/phpbench--dev

You may then run PHPBench from your project’s directory as follows:

$./vendor/bin/phpbench

Install with PHIVE

Install with The PHAR Installation and Verification Environment PHIVE:

$phiveinstallphpbench

Install as a PHAR

You can download phpbench.phar and the phpbench.phar.asc: as follows:

$curl-Lophpbench.pharhttps://github.com/phpbench/phpbench/releases/latest/download/phpbench.phar
$curl-Lophpbench.phar.aschttps://github.com/phpbench/phpbench/releases/latest/download/phpbench.phar.asc

The PHAR is signed. In order to verify that it was signed by the PHPBench team execute the following:

gpg--recv-keys1EF396F668895578CAB457A26FC579F5F0FCC966
gpg--with-fingerprint--verifyphpbench.phar.ascphpbench.phar

You should then see something like the following:

gpg:SignaturemadeTue13Apr202116:35:57BST
gpg:usingRSAkey29BE1AD59988642ADCDFC86715E1F8E2B149E6F5
gpg:Goodsignaturefrom"Daniel Leech (PHPBench Github Key) <daniel@dantleech.com>"[ultimate]
Primarykeyfingerprint:29BE1AD59988642ADCDFC86715E1F8E2B149E6F5