Etiqueta: rest

Yii2 rest extension

Yii2 rest extension README Yii2 rest extension Installation The preferred way to install this extension is through composer. Either run php composer.phar require deesoft/yii2-rest "~1.0" or add "deesoft/yii2-rest": "~1.0" to the require section of your composer.json file. Usage In controller public...

Request Man is a PHP HTTP client library

Request Man is a PHP HTTP client library README A php http request library composer autoloading require_once DIR . “/vendor/autoload.php”; import RequestMan class use RequestManRequestMan; making a request $url = “https://jsonplaceholder.typicode.com/posts“; $response = RequestMan::setUrl( $url )->setClient(‘guzzle’)->send(); get raw data var_dump($response->toRaw()); convert...

PHP client for InSales API

There is no license information available for the latest version (dev-master) of this package. PHP client for InSales API README #API-клиент для работы с сервисом InSales Установка: composer require insales/api-client-php dev-master Пример использования: require_once 'vendor/autoload.php'; $client = new InSalesAPIApiClient('identity', 'password', 'host_name');...

Simple PHP Rest Client

Simple PHP Rest Client README This is simple and extendable REST client. Basic sage use ScRestClientClientClient; use ScRestClientResponseParserJsonResponseParser; $client = new Client('https://api.foo.bar', new JsonResponseParser()); $resource = 'zombies'; // retrieve all objects (will produce GET /zombies/) $client->getAll($resource); // create a new resource...