PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   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: 60 All time: 10,511 This week: 673Up
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: 31 packages by
Country: Turkey Turkey
Age: 31
All time rank: 282247 in Turkey Turkey
Week rank: 5 Up1 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

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 (7)  
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

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:60
This week:0
All time:10,511
This week:673Up