Download the PHP package hannesvdvreken/guzzle-clockwork without Composer
On this page you can find all versions of the php package hannesvdvreken/guzzle-clockwork. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hannesvdvreken/guzzle-clockwork
More information about hannesvdvreken/guzzle-clockwork
Files in hannesvdvreken/guzzle-clockwork
Package guzzle-clockwork
Short Description A Guzzle middleware that logs requests with Clockwork
License MIT
Informations about the package guzzle-clockwork
Guzzle middleware for Clockwork logging
⚠️ This project is up for adoption. Get in touch if you're interested in actively maintaining 3 closely related packages.
Guzzle middleware for logging requests clockwork's timeline so you can view the timeline in your browser's developer tools.
Usage
Depending on your integration of Clockwork, make sure that you call $clockwork->requestProcessed();
before you output your page.
Laravel
If you are using Laravel, use the included service providers to add the subscriber to every Guzzle Client.
Be sure to create every client (type hint with GuzzleHttp\ClientInterface
or GuzzleHttp\Client
) via the IoC container.
Guzzle v4 and v5
Versions 0.2.0
and up until 1.0.0
(exclusively) are all compatible with Guzzle v4 and v5. To develop for these versions of Guzzle, use the guzzle4-5
branch.
Use
Guzzle v3
If you want to continue to work with the old Guzzle v3 (Guzzle\Http\Client
instead of GuzzleHttp\Client
) ClockworkPlugin
then you might want to install the 0.1.*
releases. Pull request with Guzzle v3 compatibility should be made against the guzzle3
branch. Install the latest guzzle v3 compatible version with 0.1.*
or dev-guzzle3
.
Contributing
Feel free to make a pull request. Please try to be as
PSR-2
compliant as possible. Fix Code Style quickly by running vendor/bin/php-cs-fixer fix
. Give a good description of what is supposed to be added/changed/removed/fixed.
Testing
To test your code before pushing, run the unit test suite.
License
MIT
All versions of guzzle-clockwork with dependencies
hannesvdvreken/guzzle-profiler Version ^2.0
itsgoingd/clockwork Version ^5.0