PHPackages                             fastwhale/yii2-we-work - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fastwhale/yii2-we-work

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

fastwhale/yii2-we-work
======================

Yii2 wechat work SDK

1.2.7(6mo ago)0106↓33.3%MITPHPPHP ^7.1

Since Apr 7Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/fastwhale/yii2-we-work)[ Packagist](https://packagist.org/packages/fastwhale/yii2-we-work)[ RSS](/packages/fastwhale-yii2-we-work/feed)WikiDiscussions master Synced 1mo ago

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

Yii2-we-work
============

[](#yii2-we-work)

Yii2 wechat work SDK

[![Latest Stable Version](https://camo.githubusercontent.com/76a47012f58aab7d648a04da1b31206f4158dcf6e7818ce60eb06649184cead0/68747470733a2f2f706f7365722e707567782e6f72672f666173747768616c652f796969322d77652d776f726b2f762f737461626c652e706e67)](https://packagist.org/packages/fastwhale/yii2-we-work)[![Total Downloads](https://camo.githubusercontent.com/03785d09a3436cb6aefe3b115b0175c5852bc92cde852a5b89313ba50c8c64ff/68747470733a2f2f706f7365722e707567782e6f72672f666173747768616c652f796969322d77652d776f726b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/fastwhale/yii2-we-work)[![License](https://camo.githubusercontent.com/d0abc69be1c04723fea48023c054b4fc6ff21a84d6000206b602d763089a1011/687474703a2f2f706f7365722e707567782e6f72672f666173747768616c652f796969322d77652d776f726b2f6c6963656e7365)](https://packagist.org/packages/fastwhale/yii2-we-work)[![PHP Version Require](https://camo.githubusercontent.com/e09dabae41bdfc52c2cdb936ce3a33cf71c62e42dbfd7f0efcc08bd9d4419565/687474703a2f2f706f7365722e707567782e6f72672f666173747768616c652f796969322d77652d776f726b2f726571756972652f706870)](https://packagist.org/packages/fastwhale/yii2-we-work)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist fastwhale/yii2-we-work "*"

```

or add

```
"fastwhale/yii2-we-work": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
/** @var Work $workApi */
$workApi = \Yii::createObject([
    'class'  => Work::className(),
    'corpid' => $corpid,
    'secret' => $secret,
]);

/** @var Work $agentApi */
$agentApi = \Yii::createObject([
    'class'  => Work::className(),
    'corpid' => $corpid,
    'secret' => $agentSecret,
]);

/** @var ServiceWork $serviceWork */
$serviceWork = \Yii::createObject([
    'class'          => ServiceWork::className(),
    'suite_id'       => $suiteId,
    'suite_secret'   => $suiteSecret,
    'suite_ticket'   => $suiteTicket,
    'auth_corpid'    => $authCorpid,
    'permanent_code' => $permanentCode,
]);

/** @var ServiceProvider $serviceProvider */
$serviceProvider = \Yii::createObject([
    'class'           => ServiceProvider::className(),
    'provider_corpid' => $providerCorpid,
    'provider_secret' => $providerSecret,
]);
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance69

Regular maintenance activity

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~34 days

Recently: every ~93 days

Total

61

Last Release

183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22ecd713318e756f10dba01c3f7b56a2012cebe3c64d72261d0be24a03d11342?d=identicon)[fastwhale](/maintainers/fastwhale)

---

Top Contributors

[![DoveChen](https://avatars.githubusercontent.com/u/12093494?v=4)](https://github.com/DoveChen "DoveChen (85 commits)")[![fastwhale](https://avatars.githubusercontent.com/u/143690859?v=4)](https://github.com/fastwhale "fastwhale (1 commits)")

---

Tags

yii2extensionwechatweworkworkwe

### Embed Badge

![Health badge](/badges/fastwhale-yii2-we-work/health.svg)

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

###  Alternatives

[abei2017/yii2-wx

一个专注于yii2的微信sdk

1482.8k](/packages/abei2017-yii2-wx)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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