Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

waffler-io/waffler-laravel

Repository files navigation

Waffler for Laravel

This package is a fancy wrapper for the Laravel Framework. You must know the basics of the waffler/waffler and guzzlehttp/guzzle packages.

Installation

composer require waffler/waffler-laravel

php artisan vendor:publish --tag="waffler-config"

How to configure:

This package exposes a waffler.php config file to register your client interfaces into the application service container.

The clients array:

Register your clients in the service container.

'clients' => [
    App\Clients\MyClientInterface::class => [/* GuzzleHttp options */],
],

The aliases array:

Give an alias to your clients.

'aliases' => [
    App\Clients\MyClientInterface::class => 'my-custom-alias',
],

The global_options array:

An array of guzzle http options to be used in all client instances.

'global_options' => [/* GuzzleHttp options */],

The singletons array:

An array of clients to be registered as singletons.

'singletons' => [
    App\Clients\MyClientInterface::class,
],

Contributions:

Work in progress.

About

Waffler Laravel integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages