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 (6 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 108 This week: 108All time: 9,443 This week: 1Up
Version License PHP version Categories
connectrestapi 1.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: 19 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 5x

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