linkorb / registry-whoops
Whoops Formatter and Handler: store exceptions in Registry.
Installs: 2 059
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
- filp/whoops: ^2.0
- linkorb/autotune: ^1.0
- phpunit/phpunit: ^4.8
- psr/http-message: ^1.0
This package is auto-updated.
Last update: 2024-11-29 03:42:37 UTC
README
Whoops Formatter and Handler for Registry.
Installation
$ composer require linkorb/registry-client-php linkorb/registry-whoops
Integration
Create an instance of the Registry Store client:-
use Registry\Client\ClientBuilder; use Registry\Client\Store; $config = array( 'api_host' => 'registry.example.com', 'auth' => array('myusername', 'mypassword'), 'secure' => true, ); $store = new Store(new ClientBuilder($config), 'myaccount', 'mystore');
and an instance of the Whoops handler:-
use Registry\Whoops\Formatter\RequestExceptionFormatter; use Registry\Whoops\Handler\RegistryHandler; $handler = new RegistryHandler(new RequestExceptionFormatter, $store);
and register the Whoops handler with Whoops:-
$whoops->pushHandler($handler);