PHPackages                             uniondrug/service-client - 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. uniondrug/service-client

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

uniondrug/service-client
========================

client of micro service

1.5(8y ago)0155proprietaryPHP

Since Nov 14Pushed 8y ago2 watchersCompare

[ Source](https://github.com/uniondrug/service-client)[ Packagist](https://packagist.org/packages/uniondrug/service-client)[ RSS](/packages/uniondrug-service-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

uniondrug service client
========================

[](#uniondrug-service-client)

> UnionDrug微服务`MicroService`客户端`consumer`。

- PHP `7.1+`
- Phalcon `3.2+`

### methods

[](#methods)

1. Restful请求服务
    1. `delete`(`string`, `string`, `array`, `array`)
    2. `get`(`string`, `string`, `array`)
    3. `head`(`string`, `string`, `array`)
    4. `options`(`string`, `string`, `array`, `array`)
    5. `patch`(`string`, `string`, `array`, `array`)
    6. `post`(`string`, `string`, `array`, `array`)
    7. `put`(`string`, `string`, `array`, `array`)
2. Response结果返回
    1. `withError`(`string`, `int`)
    2. `withList`(`array`)
    3. `withObject`(`array`)
    4. `withPaging`(`array`, `ResponsePaging`)
    5. `withSuccess`()

```
public function postAction(){
    $name = 'serviceName';
    $route = 'route/action';
    $query = ["page" => 1];
    $body = ["userId" => 1, "options" => ["key" => "value"]];
    $this->serviceClient->post($name, $route, $query, $body);
}
```

*Directory*

```
└── vendor
    └── uniondrug
        └── service-client
            ├── src
            │   └── Client.php
            └── README.md

```

*Composer*

```
{
    "autoload" : {
        "psr-4" : {
            "UniondrugServiceClient\\" : "vendor/uniondrug/service-client/src"
        }
    }
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~19 days

Total

5

Last Release

3025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/865ceb7d8226574735eab8fc82de9cfbc4a708c291b3c816e75d53944348b686?d=identicon)[wsfuyibing](/maintainers/wsfuyibing)

---

Top Contributors

[![fuyibing](https://avatars.githubusercontent.com/u/8390620?v=4)](https://github.com/fuyibing "fuyibing (8 commits)")[![xueron](https://avatars.githubusercontent.com/u/2560873?v=4)](https://github.com/xueron "xueron (2 commits)")

---

Tags

phalcon

### Embed Badge

![Health badge](/badges/uniondrug-service-client/health.svg)

```
[![Health](https://phpackages.com/badges/uniondrug-service-client/health.svg)](https://phpackages.com/packages/uniondrug-service-client)
```

###  Alternatives

[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k414.1k18](/packages/phalcon-zephir)[phalcon/ide-stubs

The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.

1623.1M121](/packages/phalcon-ide-stubs)[phalcongelist/php-diff

A comprehensive library for generating differences between two hashable objects (strings or arrays).

12435.5k2](/packages/phalcongelist-php-diff)[izica/phalcon-meta-tags

Phalcon PHP Meta tags service

1215.9k](/packages/izica-phalcon-meta-tags)[stanislav-web/phalcon-sms-factory

Multiple gateway SMS Sender factory. Provide any SMS services inside your Phalcon's projects

321.6k](/packages/stanislav-web-phalcon-sms-factory)[limingxinleo/x-phalcon-enum

a phalcon enum component

104.4k1](/packages/limingxinleo-x-phalcon-enum)

PHPackages © 2026

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