PHPackages                             waffler/laravel-bridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. waffler/laravel-bridge

ActiveLibrary

waffler/laravel-bridge
======================

Laravel Bridge Component

4.3.0(8mo ago)04MITPHPPHP ^8.4CI passing

Since Aug 21Pushed 8mo agoCompare

[ Source](https://github.com/waffler-io/laravel-bridge)[ Packagist](https://packagist.org/packages/waffler/laravel-bridge)[ RSS](/packages/waffler-laravel-bridge/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

READ-ONLY
=========

[](#read-only)

This is a readonly subsplit tree of [The Waffler Project](https://github.com/waffler-io/waffler).

If you want to contribute, please visit the main repository.

---

Installation
------------

[](#installation)

To install this library, run the following command:

```
composer require waffler/laravel-bridge

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

How to configure:
-----------------

[](#how-to-configure)

This package exposes a `waffler.php` config file to register your client interfaces into the application [service container](https://laravel.com/docs/8.x/container).

### The `clients` array:

[](#the-clients-array)

Register your clients in the service container.

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

### The `aliases` array:

[](#the-aliases-array)

Give an alias to your clients.

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

### The `global_options` array:

[](#the-global_options-array)

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

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

### The `singletons` array:

[](#the-singletons-array)

An array of clients to be registered as singletons.

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

Commands:
---------

[](#commands)

This package exposes a few commands to generate the client interface classes.

### `php artisan waffler:cache`

[](#php-artisan-wafflercache)

Generates the client interface classes declared in the `waffler.php` config file.

This command is also automatically called when you run `php artisan optimize`, and the generated class names are saved alongside the optimized cache.

### `php artisan waffler:clear`

[](#php-artisan-wafflerclear)

Clears the generated client interface classes.

This command is also automatically called when you run `php artisan optimize:clear`.

Important tip:
--------------

[](#important-tip)

While developing, it is recommended to avoid caching the application config files using `php artisan config:cache` or `php artisan optimize`.

This package uses the configuration files to save the generated class name, and the name can change when you are editing the source code of the client interface.

Only cache the config files when everything is ready to be deployed, like when you (are supposed to) do in production.

If you encounter a generated class that has missing methods, it is probably because the config file has been cached. Try clearing the cache and regenerating the config files.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance60

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c4d7b81b04cad437d9e4579d02e2a96c62320da264c82be0f5fb784034b49c2?d=identicon)[ErickJMenezes](/maintainers/ErickJMenezes)

---

Top Contributors

[![ErickJMenezes](https://avatars.githubusercontent.com/u/49132967?v=4)](https://github.com/ErickJMenezes "ErickJMenezes (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waffler-laravel-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/waffler-laravel-bridge/health.svg)](https://phpackages.com/packages/waffler-laravel-bridge)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
