File: README.md

Recommend this page to a friend!
  Classes of Alexey Dodonov  >  Mezon Custom PHP HTTP Request  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Mezon Custom PHP HTTP Request
Send HTTP requests with a single line of code
Author: By
Last change:
Date: 8 months ago
Size: 1,150 bytes
 

Contents

Class file image Download

Custom client for external services Build Status codecov Scrutinizer Code Quality

Installation

Just print

composer require mezon/custom-client

Sending requests

You can send different types of requests.

$client = new \Mezon\CustomClient\CustomClient();

// sending get request
$client->sendGetRequest('https://your-api/end/point/?param=1');

// sending post request
$client->sendPostRequest('https://your-api/end/point/', ['param' => 1]);

// sending put request
$client->sendPutRequest('https://your-api/end/point/', ['param' => 1]);

// sending delete request
$client->sendDeleteRequest('https://your-api/end/point/', ['param' => 1]);

Idempotence keys

tba


For more information send a message to info at phpclasses dot org.