PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 125 All time: 9,440 This week: 524Up
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: 42
All time rank: 109211 in Czech Republic Czech Republic
Week rank: 178 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 (7)  
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 (7)  /  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 (7)  /  src  /  DataProvider  
File Role Description
  Plain text file CURL.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:125
This week:0
All time:9,440
This week:524Up