k911 / swoole-bundle

Symfony Swoole Bundle
MIT License
259 stars 46 forks source link
async hacktoberfest http-server php swoole symfony-bundle

Swoole Bundle

Maintainability Test Coverage Open Source Love MIT Licence

Symfony integration with Swoole to speed up your applications.


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 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 k911/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:

Swoole

Bundle requires Swoole PHP Extension version 4.5.10 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.4.7

Installation

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