PHPackages                             briarbear/yii2 - 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. [Framework](/categories/framework)
4. /
5. briarbear/yii2

ActiveLibrary[Framework](/categories/framework)

briarbear/yii2
==============

Run Yii2 With Swoole.

v1.1.2(8y ago)754625[1 issues](https://github.com/lscgzwd/yii2-swoole/issues)Apache License 2.0PHPPHP &gt;=7.0

Since Aug 29Pushed 6y ago9 watchersCompare

[ Source](https://github.com/lscgzwd/yii2-swoole)[ Packagist](https://packagist.org/packages/briarbear/yii2)[ Docs](https://github.com/lscgzwd/briarbear)[ RSS](/packages/briarbear-yii2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (15)Used By (0)

[yiiswoole](https://github.com/lsccgzwd/yii2-swoole)
====================================================

[](#yiiswoole)

Yii2 run with swoole

Requirements
============

[](#requirements)

- swoole 1.9.18
- briarbear/briarbear 1.0.0
- yiisoft/yii2 2.0.8
- php 7.0

Feature：
========

[](#feature)

- Elastic Job
- Dubbo (developing)
- Compute Cluster (developing)

Usage
=====

[](#usage)

- composer install briarbear/yii2
- modify the examples\\yii2\\storage\\web\\start.php, correct the path. You can give $config to the run method or set the property of Start class.
- $config must have server and logger key. view examples\\yii2\\storage\\config\\params.php
- if your want to use crontab, must config the zookeeperHost, otherwise set START\_CRONTAB to false
- by default we use config separate, you should mkdir -p /data/conf/qiye then cp the ini file to that directory
- run php examples/yii2/storage/web/start.php restart to start the service
- curl -d ""

使用方法
====

[](#使用方法)

- 使用composer安装本程序，package: briarbear/yii2
- 修改examples里面的试例
- Start类支持直接配置属性，自动加载Yii2的配置文件，也可以通过run方法的参数传入配置数组
- 如果要使用定时任务功能，需要配置zookeeper, 否则把常量START\_CRONTAB 设置成false
- 我们线上使用了配置分离，你可能需要将ini文件夹中的配置文件拷贝到对应目录
- 执行php start.php restart 启动服务

Upgrade
=======

[](#upgrade)

- 2017-08-29 support composer

Contact
=======

[](#contact)

- QQ: 1474212
- EMAIL:
- 欢迎直接提issues, welcome pull request and submit issues

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

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 ~8 days

Total

14

Last Release

3119d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7054255?v=4)[Levi.Lu](/maintainers/lscgzwd)[@lscgzwd](https://github.com/lscgzwd)

---

Top Contributors

[![lscgzwd](https://avatars.githubusercontent.com/u/7054255?v=4)](https://github.com/lscgzwd "lscgzwd (7 commits)")

---

Tags

swooleyii2BriarBear

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[yiisoft/yii2-app-advanced

Yii 2 Advanced Project Template

1.7k960.6k5](/packages/yiisoft-yii2-app-advanced)[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

44912.1M264](/packages/yiisoft-yii2-redis)[yiisoft/yii2-httpclient

HTTP client extension for the Yii framework

43011.4M323](/packages/yiisoft-yii2-httpclient)[yiisoft/yii2-debug

The debugger extension for the Yii framework

20324.2M616](/packages/yiisoft-yii2-debug)[yiisoft/yii2-app-basic

Yii 2 Basic Project Template

6761.8M8](/packages/yiisoft-yii2-app-basic)

PHPackages © 2026

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