2017 © Pedro PelĂĄez
 

project swoole-yii2

swoole yii2

image

degree66/swoole-yii2

swoole yii2

  • Friday, June 22, 2018
  • by degree
  • Repository
  • 2 Watchers
  • 12 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 50 % Grown

The README.md

, (*1)

Swoole Extension for Yii 2

This extension provides an swoole for Yii framework 2.0 based on swoole., (*2)

For license information check the LICENSE-file., (*3)

Latest Stable Version, (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

composer require parker714/yii2-s -vvv

Usage

After installation, you need to modify the configuration and then use it:, (*7)

# 1.Add the configuration in the console.php
...
'bootstrap'     => ['log'],
'controllerMap' => [
    'sw-http' => [
        'class'  => \parker714\yii2s\SwController::class,
        'server' => [
            'class'      => \parker714\yii2s\servers\Http::class,
            'webAppConf' => require(__DIR__ . '/web.php'),
    ],
...  

# 2.Put the web.php configurationsw exception、request、response are different from php-fpm
...
'components' => [
    'errorHandler' => [
        'class'            => \parker714\yii2s\components\ErrorHandle::class,
        'as errorResponse' => [
            'class'    => \parker714\yii2s\behaviors\ErrorResponse::class,
        ],
    ],
    'response'     => [
        'class'  => \parker714\yii2s\components\Response::class,
        'format' => \yii\web\Response::FORMAT_JSON,
    ],
    'request'      => [
        'class'   => \parker714\yii2s\components\Request::class,
        'parsers' => [
            'application/json' => \yii\web\JsonParser::class,
        ],
    ]
...

# 3.Management server
./yii sw-http/server start|stop|reload

Tutorials

1.More ways to use, (*8)

2.The idea of using swoole in yii2, (*9)

Add WeChat to learn more

Usage example of Yii2 shell, (*10)

The Versions

22/06 2018

dev-master

9999999-dev

swoole yii2

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yii2 swoole

17/05 2018

2.2

2.2.0.0

swoole yii2

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yii2 swoole

16/04 2018

2.1

2.1.0.0

swoole yii2

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yii2 swoole

23/03 2018

2.0

2.0.0.0

swoole yii2

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

yii2 swoole

28/02 2018

1.1

1.1.0.0

swoole yii2

  Sources   Download

Apache-2.0

The Requires

 

yii2 swoole

28/02 2018

1.0

1.0.0.0

swoole yii2

  Sources   Download

The Requires

 

yii2 swoole