https://github.com/phpbench/phpbench-example-extension
Example PHPBench extension
https://github.com/phpbench/phpbench-example-extension
Last synced: 8 months ago
JSON representation
Example PHPBench extension
- Host: GitHub
- URL: https://github.com/phpbench/phpbench-example-extension
- Owner: phpbench
- License: mit
- Created: 2016-05-07T14:45:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-07T14:45:30.000Z (almost 10 years ago)
- Last Synced: 2025-03-12T20:24:07.092Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Example PHPBench extension
==========================
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:
```javascript
{
"extension_autoloader": "path/to/autoload.php",
"extensions": [
"Acme\\PhpBench\\Extension\\Example\\ExampleExtension"
]
}
```
You should now have the `acme:foo` command registered:
```bash
$ phpbench acme:foo
```
and the `foo` progress logger:
```bash
$ phpbench run --progress=foo
```