bear/swoole

Swoole script for BEAR.Sunday

Installs: 272

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 1

Open Issues: 3

pkg:composer/bear/swoole

1.0.0 2026-01-23 13:28 UTC

README

This library provides the support of Swoole into an BEAR.Sunday application.

Installation

Run the following to install this library:

composer require bear/swoole
composer require fastd/http 5.0.x-dev

Entry Script

Place the entry script file at bin/swoole.php with IP address and port number.

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

Execute

You can run a BEAR.Sunday application with Swoole using the following command:

php bin/swoole.php