You can execute your BEAR.Sunday application using Swoole directly from the command line. It dramatically improves performance.


Swoole Install

See https://github.com/swoole/swoole-src#%EF%B8%8F-installation

BEAR.Swoole Install

composer require bear/swoole ^0.4

Place the bootstrap script at bin/swoole.php

require dirname(__DIR__) . '/autoload.php';
exit((require dirname(__DIR__) . '/vendor/bear/swoole/bootstrap.php')(
    'prod-hal-app',       // context
    'MyVendor\MyProject', // application name
    '',          // IP
    8080                  // port


php bin/swoole.php
Swoole http server is started at

Benchmarking site

See BEAR.HelloworldBenchmark You can expect x2 to x10 times bootstrap performance boost.