This package is a fancy wrapper for the Laravel Framework. You must know the basics of the waffler/waffler and guzzlehttp/guzzle packages.
composer require waffler/waffler-laravel
php artisan vendor:publish --tag="waffler-config"This package exposes a waffler.php config file to register your
client interfaces into the application service container.
Register your clients in the service container.
'clients' => [
App\Clients\MyClientInterface::class => [/* GuzzleHttp options */],
],Give an alias to your clients.
'aliases' => [
App\Clients\MyClientInterface::class => 'my-custom-alias',
],An array of guzzle http options to be used in all client instances.
'global_options' => [/* GuzzleHttp options */],An array of clients to be registered as singletons.
'singletons' => [
App\Clients\MyClientInterface::class,
],Work in progress.