PHP Classes


Recommend this page to a friend!
  Classes of Alexey Dodonov  >  Mezon Custom PHP HTTP Request  >  >  Download  
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: 2 years ago
Size: 1,150 bytes


Class file image Download

Custom client for external services Build Status codecov Scrutinizer Code Quality


Just print

composer require mezon/custom-client

Sending requests

You can send different types of requests.

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

// sending get request

// 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