PHP code example of se7enxweb / exponential-velocity

1. Go to this page and download the library: Download se7enxweb/exponential-velocity library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

se7enxweb / exponential-velocity example snippets

bash
git clone https://github.com/Qbix/webserver
cd webserver
php qbixserver.php
bash
curl -LO https://github.com/se7enxweb/exponential-velocity/releases/latest/download/qbixserver.phar
php qbixserver.phar --root=./web
bash
cd my-laravel-app
php /path/to/qbixserver.php --root=public --preset=laravel --port=8080
bash
cd my-symfony-app
php /path/to/qbixserver.php --root=public --preset=symfony --port=8080
bash
cd my-wordpress-site
php /path/to/qbixserver.php --root=. --preset=wordpress --port=8080
bash
cd my-drupal-site
php /path/to/qbixserver.php --root=web --preset=drupal --port=8080
bash
cd my-exponential-site
php /path/to/qbixserver.php --root=. --preset=exponential --port=8080
bash
php /path/to/qbixserver.php --root=public --port=8080
bash
php qbixserver.phar --root=./web
bash
php -v
bash
php -v
bash
php qbixserver.php --root=examples/todo/web --port=8080
bash
php tests/bench-load.php https://localhost:8443/
php tests/bench-load.php http://127.0.0.1:8088/ --levels=1,4,16,64 --requests=500
php tests/bench-load.php https://host/ --http1        # compare protocols
php tests/bench-load.php https://host/ --json         # for a pipeline
bash
php tests/run-unit.php              # everything self-contained, ~3s
php tests/run-unit.php hpack        # only tests whose name matches
bash tests/run.sh                   # the above, then real sockets and TLS