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    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-24 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 81 This week: 5All time: 9,727 This week: 39Up
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: 39
All time rank: 119011 in Czech Republic Czech Republic
Week rank: 1 Up
Innovation award
Innovation award
Nominee: 6x

Details

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:81
This week:5
All time:9,727
This week:39Up
For more information send a message to info at phpclasses dot org.