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 View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-01-22 (10 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 142 This week: 1All time: 9,097 This week: 491Up
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
Age: ???
All time rank: 76221 in Poland Poland
Week rank: 49 Up3 in Poland Poland Up
Innovation award
Innovation award
Nominee: 8x

Winner: 2x

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:142
This week:1
All time:9,097
This week:491Up