Download the PHP package slepic/http-transfer without Composer
On this page you can find all versions of the php package slepic/http-transfer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slepic/http-transfer
More information about slepic/http-transfer
Files in slepic/http-transfer
Package http-transfer
Short Description Simple PHP library working with PSR HTTP message transfers.
License BSD-3-Clause
Informations about the package http-transfer
http-transfer
Simple PHP library working with PSR HTTP message transfers.
Usage
There are 3 components at this moment:
Log
This component consists of:
- interface defining a simple structure holing the request, response, error, time of start and end of the transfer.
- interface which is used to store the logs.
Observer
An abstraction over the transfer process where the observer is notified about start and end of transfer processes.
The observation is provided by the which is in fact just a factory.
The observer takes the initiating request and returns a one use object implementing .
The delegate is destined to be notified of either success or failure of the transfer, and then it gets destroyed by garbage collector.
History
A coposition of the two above that implements the osbserver to create the logs with duration information.
This one contains just an implementation of the .
The pushes transfer logs to a storage as they get completed.
Well of course the job is actualy done by its delegate
Packagist Providers
- - consumers of LogInterface
- - consumers of ObserverInterface and ObserverDelegateInterface
- - implementations of ObserverInterface and ObserverDelegateInterface.
If you use this library in a public project and you use composer and share the project on packagist, consider adding the packagist providers above to your composer.json like this: