PHPackages                             edoctor/ecs-phpsdk - 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. edoctor/ecs-phpsdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

edoctor/ecs-phpsdk
==================

PHP-SDK for eCloudSystem

v1.0.8(9y ago)033MITPHPPHP &gt;=7.0.0

Since Dec 26Pushed 9y ago2 watchersCompare

[ Source](https://github.com/eDoctor/ecs-phpsdk)[ Packagist](https://packagist.org/packages/edoctor/ecs-phpsdk)[ RSS](/packages/edoctor-ecs-phpsdk/feed)WikiDiscussions master Synced 1mo ago

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

安装部署
----

[](#安装部署)

```
composer require edoctor/ecs-phpsdk

```

使用说明
----

[](#使用说明)

#### 接入通用项目

[](#接入通用项目)

```
use Redis;
use eDoctor\Phpecs\Phpecs;
use eDoctor\Phpecs\Request\User\Login as UserLogin;

$redis = new Redis();
$redis->connect('127.0.0.1', '6379');

$config = [
    'api_server'    => '',
    'api_key'       => '',
    'api_secret'    => '',
    'request_timeout'   => 60
];
$phpecs = new Phpecs($config, $redis);

$userLogin = new UserLogin($phpecs);
$userLogin->setRoleId(1);
$userLogin->setAuthMethod('mobile');
$userLogin->setMobile('13300002222');
$userLogin->setPassword('123456');
$userLogin->setPlatform('android');

$response = $userLogin->getResponse();
```

#### For Laravel:

[](#for-laravel)

**编辑 config/app.php 在 providers 数组追加:**

```
eDoctor\Phpecs\PhpecsProvider::class,
```

**发布配置文件到 config/phpecs.php**

```
php artisan vendor:publish --provider="eDoctor\Phpecs\PhpecsProvider" --tag=config
```

**在 .env 文件中增加配置选项, 它会被自动调用**

```
ECS_API_SERVER=
ECS_API_KEY=
ECS_API_SECRET=
ECS_REQUEST_TIMEOUT=60
```

```
当然也可以直接修改 config/phpecs.php (不推荐)

```

**在控制器中实现自动注入**

```
class UserController extends Controller
{
    public function login(Request $request, Phpecs $phpecs)
    {
        $ecs = new Login($phpecs);
        $ecs->setRoleId(1);
        $ecs->setAuthMethod('mobile');
        $ecs->setMobile($request->input('mobile'));
        $ecs->setPassword($request->input('password'));
        $ecs->setPlatform('windows');
        $response = $ecs->getResponse();

        dd($response);
    }
}
```

接口列表
====

[](#接口列表)

整理中... (可参照IDE自动提示)

技术支持
====

[](#技术支持)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

Total

9

Last Release

3408d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c15cac79f31c611504f1491f5239b79fcc49cf6b655f8e2159e002c0fb2c69dc?d=identicon)[wenpeng](/maintainers/wenpeng)

![](https://www.gravatar.com/avatar/dfe8c9fe03785ef02c089b4f5e94cd9885e27ca3f1c19403071737a37b21163f?d=identicon)[RayGyoe](/maintainers/RayGyoe)

---

Top Contributors

[![wenpeng](https://avatars.githubusercontent.com/u/11190229?v=4)](https://github.com/wenpeng "wenpeng (15 commits)")

---

Tags

ECS SDK

### Embed Badge

![Health badge](/badges/edoctor-ecs-phpsdk/health.svg)

```
[![Health](https://phpackages.com/badges/edoctor-ecs-phpsdk/health.svg)](https://phpackages.com/packages/edoctor-ecs-phpsdk)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[php-junior/laravel-video-chat

Laravel Video Chat using Socket.IO and WebRTC

82018.1k](/packages/php-junior-laravel-video-chat)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[splitsoftware/split-sdk-php

Split SDK for PHP

161.3M2](/packages/splitsoftware-split-sdk-php)[vwo/vwo-php-sdk

VWO server side sdk

12166.4k](/packages/vwo-vwo-php-sdk)

PHPackages © 2026

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