cubex/workerman

Cubex Framework with Workerman

Installs: 11 408

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/cubex/workerman

0.5.0 2024-04-09 15:26 UTC

This package is auto-updated.

Last update: 2025-10-09 19:56:38 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