PHP Classes

PHP JSON API Client: Send requests to APIs that respond in JSON format

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 125 This week: 1All time: 9,422 This week: 560Up
Version License PHP version Categories
php-json-api-client 1.0.0GNU General Publi...5HTTP, PHP 5, Web services
Description 

Author

This package can send requests to APIs that respond in JSON format.

It provides a class that can send HTTP requests to given API Web servers using a given data provider object of another class that will perform the actual communication with the API Web server.

Currently, the JSON API client class can send HTTP GET, POST, PUT and DELETE requests.

This class decodes the JSON responses and returns the decoded values.

Picture of Juraj Puchký
  Performance   Level  
Name: Juraj Puchký is available for providing paid consulting. Contact Juraj Puchký .
Classes: 17 packages by
Country: Czech Republic Czech Republic
Age: 41
All time rank: 109511 in Czech Republic Czech Republic
Week rank: 52 Up1 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 6x

Documentation

php-json-api-client

Simple PHP JSON Rest API Client

Install

composer require baba/json-api-client

Example

  use BABA\JSON\API\Client\DataProvider\CURL;
  use BABA\JSON\API\Client\JsonRestApiClient;
  
  $client = new JsonRestApiClient(new CURL());
  var_dump($client->get('http://api.example.com/test.json')); 

Supports

  • CURL as Data provider

License

GPL-2.0-only

Authors

Juraj Puchký - BABA Tumise s.r.o. <info@baba.bj>

https://www.seoihned.cz - SEO optilamizace

https://www.baba.bj - Tvorba webových stránek

https://www.webtrace.cz - Tvorba portál? a ecommerce b2b/b2c (eshop?) na zakázku

Log

1.0.0 - CURL Implemented

Copyright

&copy; 2021 BABA Tumise s.r.o.


  Files folder image Files  
File Role Description
Files folder imagesrc (3 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageDataProvider (1 file)
  Plain text file IApiClient.php Class Class source
  Plain text file IDataProvider.php Class Class source
  Plain text file JsonRestApiClient.php Class Class source

  Files folder image Files  /  src  /  DataProvider  
File Role Description
  Plain text file CURL.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:125
This week:1
All time:9,422
This week:560Up