ocpu / dash-agent
Making requests easy
1.0.0
2018-12-06 09:03 UTC
Requires
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-07 00:37:43 UTC
README
dash-agent-php
Dash Agent is a request abstraction to make requests easier to do.
Install
composer require ocpu/dash-agent
Shortly about the API
This abstraction has a central class RequestBuilder
. That class is the key to the whole api. You can initialize it with new RequestBuilder(method, host)
, RequestBuilder::get(host)
or RequestBuilder::post(host)
. The host
parameter is a url without the protocol and query string.