PHP Classes

PHP HTTP Request Build: Build and send HTTP requests from parameters

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-09-30 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 57 All time: 10,433 This week: 43Up
Version License PHP version Categories
http-request-buold 1.0.0The PHP License7HTTP, PHP 7
Description 

Author

This package can build and send HTTP requests from parameters.

It provides a build class that has functions to define several types of parameters to compose the URL of an HTTP request, for instance, the base URL, query parameters, and request method.

The package can also send the HTTP request to the composed URL.

Picture of Hicri
  Performance   Level  
Name: Hicri <contact>
Classes: 21 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 2x

Example

<?php

require 'Build.php';
require
"HttpResponse.php";

$vvv = Build::connection()
    ->
baseUrl('https://www.drupal.org/')
    ->
query(['type' => 'book'])
    ->
get('api-d7/node.json');

print_r($vvv->toArray());




Details

http

http client


  Files folder image Files  
File Role Description
Plain text file Build.php Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file curl_helper.php Aux. Auxiliary script
Accessible without login Plain text file curl_helper1.php Aux. Auxiliary script
Plain text file HttpResponse.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:57
This week:0
All time:10,433
This week:43Up