PHPackages                             dovechen/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. [API Development](/categories/api)
4. /
5. dovechen/yii2-we-work

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

dovechen/yii2-we-work
=====================

Yii2 wechat work SDK

1.2.5.0(2y ago)49513MITPHPPHP ^7.1

Since Apr 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/DoveChen/yii2-we-work)[ Packagist](https://packagist.org/packages/dovechen/yii2-we-work)[ RSS](/packages/dovechen-yii2-we-work/feed)WikiDiscussions master Synced today

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

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

[](#yii2-we-work)

Yii2 wechat work SDK

[![Latest Stable Version](https://camo.githubusercontent.com/dac55511cbf6c366633845468e5a0912886380c21ffdfabd338b4ac4a332218b/68747470733a2f2f706f7365722e707567782e6f72672f646f76656368656e2f796969322d77652d776f726b2f762f737461626c652e706e67)](https://packagist.org/packages/dovechen/yii2-we-work)[![Total Downloads](https://camo.githubusercontent.com/090ebcf005cfa173269ae2dcaae548c28e02b70c4e36f2d767d0655a385af4c1/68747470733a2f2f706f7365722e707567782e6f72672f646f76656368656e2f796969322d77652d776f726b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/dovechen/yii2-we-work)[![License](https://camo.githubusercontent.com/7375ba2fc7806d0984d5934fc4eb59c9ee04da7afc21e3bcb8e68a1cfa792d62/687474703a2f2f706f7365722e707567782e6f72672f646f76656368656e2f796969322d77652d776f726b2f6c6963656e7365)](https://packagist.org/packages/dovechen/yii2-we-work)[![PHP Version Require](https://camo.githubusercontent.com/dbda8880a222f9b01d2ad41af12ba9aaa52c37ea1d90908efe3c4ff84400dbd3/687474703a2f2f706f7365722e707567782e6f72672f646f76656368656e2f796969322d77652d776f726b2f726571756972652f706870)](https://packagist.org/packages/dovechen/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 dovechen/yii2-we-work "*"

```

or add

```
"dovechen/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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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

Recently: every ~52 days

Total

44

Last Release

988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e4956233268ce8cc017fe9a502eab66720e5940c0cf394ffa1d952684ecff1f?d=identicon)[DoveChen](/maintainers/DoveChen)

---

Top Contributors

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

---

Tags

yii2extensionwechatweworkworkwe

### Embed Badge

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

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

###  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)[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)
