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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 167 All time: 8,858 This week: 231Up
Version License PHP version Categories
connectrestapi 1.0.0MIT/X Consortium ...5HTTP, PHP 5, Web services


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: 74521 in Poland Poland
Week rank: 131 Up2 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 Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,858
This week:231Up