mezon / service-client
Small service client script
Installs: 4 879
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- mezon/custom-client: 1.0.*
- mezon/dns-client: 1.0.*
- mezon/rest-exception: 1.0.*
Requires (Dev)
- infection/infection: ^0.21.5
- phpunit/php-token-stream: 3.1.2
- phpunit/phpunit: ^8.5
- vimeo/psalm: ^4.2
README
Intro
Mezon provides simple client services based on the Mezon framework.
Installation
Just print in console
composer require mezon/service-client
And that's all )
Setup
First of all you need to create client and set to wich service it must send requests:
$client = new \Mezon\Service\ServiceClient('https://some-service.com/');
And since then you can connect to this service:
client->connect('login', 'password');
Default methods
You already know about one out-of-the box method - connect. But there are more of them.