2017 © Pedro Peláez
 

project service-client

client of micro service

image

uniondrug/service-client

client of micro service

  • Thursday, February 1, 2018
  • by wsfuyibing
  • Repository
  • 2 Watchers
  • 0 Stars
  • 142 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

uniondrug service client

UnionDrug微服务MicroService客户端consumer。, (*1)

  • PHP 7.1+
  • Phalcon 3.2+

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, (*2)

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

Composer, (*3)

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

The Versions

01/02 2018

dev-master

9999999-dev

client of micro service

  Sources   Download

proprietary

by fuyibing

phalcon

31/01 2018

1.5

1.5.0.0

client of micro service

  Sources   Download

proprietary

by fuyibing

phalcon

22/12 2017

1.4

1.4.0.0

client of micro service

  Sources   Download

proprietary

by fuyibing

phalcon

19/12 2017

1.3

1.3.0.0

client of micro service

  Sources   Download

proprietary

by fuyibing

phalcon

19/12 2017

1.2

1.2.0.0

client of micro service

  Sources   Download

proprietary

by fuyibing

phalcon

14/11 2017

1.1

1.1.0.0

client of micro service

  Sources   Download

proprietary

by fuyibing

phalcon