PHPackages                             parker714/yii2-s - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. parker714/yii2-s

ActiveYii2-extension[API Development](/categories/api)

parker714/yii2-s
================

speed up yii2 app by swoole

3.0.3(6y ago)331683MITPHP

Since Aug 13Pushed 6y ago5 watchersCompare

[ Source](https://github.com/parker714/yii2-s)[ Packagist](https://packagist.org/packages/parker714/yii2-s)[ RSS](/packages/parker714-yii2-s/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

Swoole Extension for Yii 2
==========================

[](#swoole-extension-for-yii-2)

This extension provides an swoole for [Yii framework 2.0](http://www.yiiframework.com) based on [swoole](https://www.swoole.com/).

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/344d40086109e964a49288c43afaff72f06319d2741f684145901f20808f72ad/68747470733a2f2f706f7365722e707567782e6f72672f7061726b65723731342f796969322d732f762f737461626c652e706e67)](https://packagist.org/packages/parker714/yii2-s)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require parker714/yii2-s -vvv

```

Usage
-----

[](#usage)

After installation, you need to modify the configuration and then use it:

```
# 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
---------

[](#tutorials)

1.[More ways to use](MORE.md)

2.[The idea of using swoole in yii2](https://www.jianshu.com/p/9c2788ccf3c0)

Add WeChat to learn more
------------------------

[](#add-wechat-to-learn-more)

[![Usage example of Yii2 shell](pb.jpeg)](pb.jpeg)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Recently: every ~87 days

Total

11

Last Release

2374d ago

Major Versions

2.1.5 → 3.0.02019-03-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/875887?v=4)[Eugene Dubrovka](/maintainers/degree)[@degree](https://github.com/degree)

---

Top Contributors

[![parker714](https://avatars.githubusercontent.com/u/18520895?v=4)](https://github.com/parker714 "parker714 (6 commits)")

---

Tags

apiresefulswooletcpyii2swooleyii2

### Embed Badge

![Health badge](/badges/parker714-yii2-s/health.svg)

```
[![Health](https://phpackages.com/badges/parker714-yii2-s/health.svg)](https://phpackages.com/packages/parker714-yii2-s)
```

###  Alternatives

[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
