Example of a PHPBench extension.
In order to enable this extension with the PHAR version of PHPBench you will need to configure the path to an (composer) autoloader which can load the extension and activate the extension:
{
"extension_autoloader": "path/to/autoload.php",
"extensions": [
"Acme\\PhpBench\\Extension\\Example\\ExampleExtension"
]
}You should now have the acme:foo command registered:
$ phpbench acme:fooand the foo progress logger:
$ phpbench run --progress=foo