cubex / workerman
Cubex Framework with Workerman
0.5.1
2026-10-22 12:25 UTC
Requires
- cubex/framework: ^4.0
- workerman/workerman: ^4.0 || ^5.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-22 12:26:13 UTC
README
Within your public/index.php you will need to upgrade
$cubex = new Cubex(dirname(__DIR__), $loader);
$cubex->handle(new Application());
to
use Cubex\Workerman\CubexWorker;
$worker = CubexWorker::create(
dirname(__DIR__),
$loader,
function () { return new Application(); },
'http://0.0.0.0:3000'
)->setCount(4);
this will run workerman on port 3000 with 4 processes