uniondrug / service-server
server of micro service
Installs: 142
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
pkg:composer/uniondrug/service-server
This package is auto-updated.
Last update: 2025-10-09 20:56:49 UTC
README
UnionDrug微服务
MicroService服务端producer。
- PHP
7.1+ - Phalcon
3.2+
Methods
withError(string,int)withList(array)withObject(array)withPaging(array,ResponsePaging)withSuccess()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"
}
}
}