2017 © Pedro Peláez
 

library swoole-engine

Event-driven engine for running PHP with Swoole extension.

image

php-earth/swoole-engine

Event-driven engine for running PHP with Swoole extension.

  • Wednesday, May 2, 2018
  • by petk
  • Repository
  • 11 Watchers
  • 38 Stars
  • 686 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Swoole Engine

Build Status, (*1)

Event-driven PHP engine for running PHP Applications with Swoole extension., (*2)

Installation

Before using this library, you'll need Swoole extension
, (*3)

Installing using PECL:, (*4)

bash pecl install swoole, (*5)

Add extension=swoole (or extension=swoole.so for PHP < 7.2) to your php.ini file for PHP CLI sapi:, (*6)

bash echo "extension=swoole" | sudo tee --append `php -r 'echo php_ini_loaded_file();'`, (*7)

Check if Swoole extension is loaded bash php --ri swoole, (*8)

You should see something like, (*9)

```bash swoole, (*10)

swoole support => enabled Version => 2.0.10 Author => tianfeng.han[email: mikan.tenny@gmail.com] epoll => enabled eventfd => enabled timerfd => enabled signalfd => enabled cpu affinity => enabled spinlock => enabled rwlock => enabled async http/websocket client => enabled Linux Native AIO => enabled pcre => enabled mutex_timedlock => enabled pthread_barrier => enabled futex => enabled, (*11)

Directive => Local Value => Master Value swoole.aio_thread_num => 2 => 2 swoole.display_errors => On => On swoole.use_namespace => On => On swoole.fast_serialize => Off => Off swoole.unixsock_buffer_size => 8388608 => 8388608 ```, (*12)

, (*13)

Then proceed and install Swoole Engine library in your project with Composer:, (*14)

composer require php-earth/swoole-engine

Usage

Currently supported frameworks:, (*15)

  • Symfony:
vendor/bin/swoole [--env=dev|prod|...] [--host=IP] [--no-debug]

Documentation

For more information, read the documentation:, (*16)

License

Contributions are most welcome. This repository is released under the MIT license., (*17)

The Versions

02/05 2018

dev-master

9999999-dev

Event-driven engine for running PHP with Swoole extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/12 2017

v0.0.5

0.0.5.0

Event-driven engine for running PHP with Swoole extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/11 2017

v0.0.4

0.0.4.0

Event-driven engine for running PHP with Swoole extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/10 2017

v0.0.3

0.0.3.0

Event-driven engine for running PHP with Swoole extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/07 2017

v0.0.2

0.0.2.0

Event-driven engine for running PHP with Swoole extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/06 2017

v0.0.1

0.0.1.0

Event-driven engine for running PHP with Swoole extension.

  Sources   Download

MIT

The Requires

 

The Development Requires