Download the PHP package stk2k/net-driver without Composer
On this page you can find all versions of the php package stk2k/net-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download stk2k/net-driver
More information about stk2k/net-driver
Files in stk2k/net-driver
Download stk2k/net-driver
More information about stk2k/net-driver
Files in stk2k/net-driver
Vendor stk2k
Package net-driver
Short Description PHP network access library
License MIT
Homepage https://github.com/stk2k/net-driver
Package net-driver
Short Description PHP network access library
License MIT
Homepage https://github.com/stk2k/net-driver
Please rate this library. Is it a good library?
Informations about the package net-driver
NetDriver, HTTP client with plug-in system
Description
NetDriver is a PHP library which provides sending HTTP requests.
Feature
- Pluggable. You can easily replace other HTTP access library if you want.
- Simple interfaces.
- Callback events. You can customize your request before it is exectuted. Also you can get detail logs in sending request.
- PSR-3 Logger acceptable.
- cURL/PHP(file_get_contents) net drivers are bundled.
Usage
- Create net driver object(CurlNetDriver or PhpNetDriver are available).
- Create handle from net driver object.
- Create request object(HttpGetRequst/HttpPostRequest/JsonPostRequest are available).
- Call sendRequest method of net driver object and receive response object.
Demo
Example 1: sending HTTP request by cURL
Example 2: sending HTTP request by file_get_contents
Example 3: post request
Example 4: request callback
Example 5: verbose callback
Requirement
PHP 7.1 or later
Installing NetDriver
The recommended way to install NetDriver is through Composer.
After installing, you need to require Composer's autoloader:
License
Author
Disclaimer
This software is no warranty.
We are not responsible for any results caused by the use of this software.
Please use the responsibility of the your self.
All versions of net-driver with dependencies
PHP Build Version
Package Version
The package stk2k/net-driver contains the following files
Loading the files please wait ....