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

ActiveProject

uniondrug/service-server
========================

server of micro service

1.4(8y ago)0142proprietaryPHP

Since Nov 14Pushed 7y ago2 watchersCompare

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

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

uniondrug service server
========================

[](#uniondrug-service-server)

> UnionDrug微服务`MicroService`服务端`producer`。

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

### Methods

[](#methods)

1. `withError`(`string`, `int`)
2. `withList`(`array`)
3. `withObject`(`array`)
4. `withPaging`(`array`, `ResponsePaging`)
5. `withSuccess`()
6. `setPaging`(`int`, `int`, `int`)

```
public function postAction(){
    $total = 123;
    $page = 3;
    $limit = 15;
    $data = [
        ["id" => 1, "key" => "value"],
        ["id" => 2, "key" => "value2"]
    ];
    $this->serviceServer->setPaging($total, $page, $limit)->withPaging($data);
}
```

*Directory*

```
└── vendor
    └── uniondrug
        └── service-server
            ├── src
            │   └── Server.php
            └── README.md

```

*Composer*

```
{
    "autoload" : {
        "psr-4" : {
            "UniondrugServiceServer\\" : "vendor/uniondrug/service-server/src"
        }
    }
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~26 days

Total

4

Last Release

3026d 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 (4 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-server/health.svg)

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

###  Alternatives

[phalcon/cphalcon

Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.

10.8k241.4k1](/packages/phalcon-cphalcon)[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/devtools

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

1.3k2.0M54](/packages/phalcon-devtools)[phalcon/incubator

Adapters, prototypes or functionality that can be potentially incorporated to the C-framework.

7222.9M81](/packages/phalcon-incubator)[phalcon/ide-stubs

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

1623.1M121](/packages/phalcon-ide-stubs)[mattiasgeniar/phpunit-query-count-assertions

A custom assertion for phpunit that allows you to count the amount of SQL queries used in a test. Can be used to enforce certain performance characteristics (ie: limit queries to X for a certain action).

160730.9k2](/packages/mattiasgeniar-phpunit-query-count-assertions)

PHPackages © 2026

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