pixelfederation / swoole-bundle

Symfony Swoole Bundle
MIT License
32 stars 12 forks source link

Swoole Bundle

Maintainability Test Coverage Open Source Love MIT Licence

Symfony integration with Open Swoole to speed up your applications.

Sponsored by:
Blackfire.io Blackfire.io
Travis CI Travis CI

Build Matrix

CI Job Branch master Branch develop
Circle CircleCI CircleCI
CodeCov codecov codecov
Travis Build Status Build Status

Table of Contents

Quick start guide

  1. Make sure you have installed proper Open Swoole PHP Extension and pass other requirements.

  2. (optional) Create a new symfony project

    composer create-project symfony/skeleton project
    
    cd ./project
  3. Install bundle in your Symfony application

    composer require pixelfederation/swoole-bundle
  4. Edit config/bundles.php

    return [
        // ...other bundles
        K911\Swoole\Bridge\Symfony\Bundle\SwooleBundle::class => ['all' => true],
    ];
  5. Run Swoole HTTP Server

    bin/console swoole:server:run
  6. Enter http://localhost:9501

  7. You can now configure bundle according to your needs

Features

Requirements

Current version

Future versions

Additional requirements to enable specific features:

Open Swoole

Bundle requires Open Swoole PHP Extension version 4.10.0 or higher. Active bug fixes are provided only for the latest version.

Version check

To check your installed version you can run the following command:

php -r "echo swoole_version() . \PHP_EOL;"

# 4.10.0

Installation

Official GitHub repository openswoole/swoole-src contains comprehensive installation guide. The recommended approach is to install it from source.