Download the PHP package solidworx/simple-http without Composer
On this page you can find all versions of the php package solidworx/simple-http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solidworx/simple-http
More information about solidworx/simple-http
Files in solidworx/simple-http
Package simple-http
Short Description Provides a fluent interface for HTTP requests
License MIT
Homepage https://github.com/SolidWorx/SimpleHttp
Informations about the package simple-http
SimpleHttp
A PHP library that provides a fluent interface for making HTTP requests.
Installation
You can install the package via composer:
This package is an implementation of PSR-18 (HTTP Client) and requires a PSR-18 compatible HTTP client. If you don't have one installed already, you can use Guzzle:
Basic Usage
Creating a Client
Making a Simple GET Request
Making a POST Request with JSON Data
HTTP Methods
SimpleHttp supports all standard HTTP methods:
Request Configuration
Headers
Query Parameters
Request Body
Form Data
JSON
Raw Body
File Uploads
Authentication
Basic Authentication
Bearer Token Authentication
SSL Configuration
Disable SSL Verification
HTTP Version
Response Handling
Getting Response Data
Saving Response to a File
Progress Tracking
Caching Responses
Error Handling
Advanced Usage
Using with a Base URL
Immutability
All methods in the SimpleHttp client return a new instance, making the client immutable:
This allows you to create reusable client configurations:
License
The MIT License (MIT). Please see License File for more information.
All versions of simple-http with dependencies
ext-json Version *
php-http/client-common Version ^2.5
php-http/client-implementation Version ^1.0
php-http/discovery Version ^1.14
php-http/httplug Version ^2.2
php-http/message Version ^1.12
php-http/message-factory Version ^1.0
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
symfony/mime Version ^4.4 || ^5.0 || ^6.0 || ^7.0