PHP Classes

How to Send a PHP REST API Call without CURL: Send API HTTP requests using PHP file_get_contents

Recommend this page to a friend!
     
  Info   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: 172 This week: 1All time: 8,822 This week: 42Up
Version License PHP version Categories
connectrestapi 1.0.0MIT/X Consortium ...5HTTP, PHP 5, Web services
Description 

Author

This class can send API HTTP requests using PHP file_get_contents.

It can take as parameter options that define several aspects of sending an HTTP request to an API Web server, such as the HTTP method, request content data, and timeout period.

The class sends the HTTP request using the PHP file_get_contents function and returns the server response data returned by that function.

Picture of adam berger
  Performance   Level  
Name: adam berger <contact>
Classes: 23 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 8x

Winner: 2x

  Files folder image Files (4)  
File Role Description
Plain text file ClassConnectRestApi.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

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:172
This week:1
All time:8,822
This week:42Up