PHPackages                             solidframe/laravel - 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. [Framework](/categories/framework)
4. /
5. solidframe/laravel

ActiveLibrary[Framework](/categories/framework)

solidframe/laravel
==================

Laravel bridge for SolidFrame architectural packages

v0.1.0(3mo ago)05MITPHP ^8.2

Since Apr 14Compare

[ Source](https://github.com/solidframe/laravel)[ Packagist](https://packagist.org/packages/solidframe/laravel)[ RSS](/packages/solidframe-laravel/feed)WikiDiscussions Synced 3w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

SolidFrame Laravel
==================

[](#solidframe-laravel)

Laravel bridge for SolidFrame architectural packages.

Auto-discovery, DI bindings, Artisan generators, database stores, and modular monolith support — all wired into Laravel.

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

[](#installation)

```
composer require solidframe/laravel
```

The service provider is auto-registered via Laravel's package discovery.

Features at a Glance
--------------------

[](#features-at-a-glance)

FeatureWhat You Get**CQRS**CommandBus, QueryBus, handler auto-discovery, middleware**Event-Driven**EventBus, listener auto-discovery, multi-listener**Event Sourcing**Database EventStore, SnapshotStore, migrations**Saga**Database SagaStore, `solidframe:saga:status`**Modular**Module auto-discovery, ModuleServiceProvider, routes/migrations/config**Generators**10 `make:*` commands for DDD, CQRS, events, sagas, modulesHandler Auto-Discovery
----------------------

[](#handler-auto-discovery)

SolidFrame automatically discovers your command handlers, query handlers, and event listeners by scanning your `app/` directory.

```
// app/Application/Handler/PlaceOrderHandler.php
final readonly class PlaceOrderHandler implements CommandHandler
{
    public function __invoke(PlaceOrder $command): void { /* ... */ }
}

// That's it. No registration needed.
$commandBus->dispatch(new PlaceOrder('order-123', 'customer-456'));
```

Discovery works by scanning for classes that implement `CommandHandler`, `QueryHandler`, or `EventListener` marker interfaces and reading the `__invoke()` type hint.

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=solidframe-config
```

```
// config/solidframe.php
return [
    'discovery' => [
        'enabled' => true,
        'paths' => ['app'],
    ],
    'cqrs' => [
        'command_bus' => ['middleware' => []],
        'query_bus' => ['middleware' => []],
    ],
    'event_driven' => [
        'event_bus' => ['middleware' => []],
    ],
    'event_sourcing' => [
        'event_store' => [
            'driver' => 'database',
            'connection' => null,
            'table' => 'event_store',
        ],
        'snapshot_store' => [
            'driver' => 'database',
            'connection' => null,
            'table' => 'snapshots',
        ],
    ],
    'saga' => [
        'store' => [
            'driver' => 'database',
            'connection' => null,
            'table' => 'sagas',
        ],
    ],
    'modular' => [
        'path' => 'modules',
        'auto_discovery' => true,
    ],
];
```

Artisan Commands
----------------

[](#artisan-commands)

### Generators

[](#generators)

```
# DDD
php artisan make:entity Order
php artisan make:value-object Email
php artisan make:aggregate-root Order

# CQRS
php artisan make:cqrs-command PlaceOrder --handler
php artisan make:command-handler PlaceOrderHandler --command-class=PlaceOrder
php artisan make:query GetOrderById --handler
php artisan make:query-handler GetOrderByIdHandler --query-class=GetOrderById

# Event-Driven
php artisan make:domain-event OrderPlaced --listener
php artisan make:event-listener SendOrderConfirmation --event-class=OrderPlaced

# Saga
php artisan make:saga PlaceOrderSaga

# Module
php artisan make:module Order
```

All generators support subdirectories: `php artisan make:entity Order/OrderItem`

### Operational

[](#operational)

```
# List registered modules
php artisan solidframe:module:list

# View saga details
php artisan solidframe:saga:status {saga-id}
```

Database Migrations
-------------------

[](#database-migrations)

Publish migrations for event sourcing and saga stores:

```
php artisan vendor:publish --tag=solidframe-migrations
```

Three tables are created:

- `event_store` — domain events with optimistic concurrency control
- `snapshots` — aggregate snapshots
- `sagas` — saga state with associations

Modular Monolith
----------------

[](#modular-monolith)

### Create a Module

[](#create-a-module)

```
php artisan make:module Inventory
```

This creates:

```
modules/
└── Inventory/
    ├── InventoryModule.php
    ├── InventoryServiceProvider.php
    └── Database/
        └── Migrations/

```

### Module Service Provider

[](#module-service-provider)

```
use SolidFrame\Laravel\Modular\ModuleServiceProvider;

final class InventoryServiceProvider extends ModuleServiceProvider
{
    protected function module(): ModuleInterface
    {
        return new InventoryModule();
    }

    public function register(): void
    {
        parent::register();
        // custom bindings...
    }
}
```

`ModuleServiceProvider` automatically loads:

- `routes.php` from the module directory
- Migrations from `Database/Migrations/`
- `config.php` merged into `modules.{name}`

### Auto-Discovery

[](#auto-discovery)

When `solidframe.modular.auto_discovery` is `true`, modules are discovered and booted automatically. List them with:

```
php artisan solidframe:module:list
```

Middleware
----------

[](#middleware)

Add middleware to buses via config:

```
// config/solidframe.php
'cqrs' => [
    'command_bus' => [
        'middleware' => [
            App\Middleware\TransactionMiddleware::class,
            App\Middleware\LoggingMiddleware::class,
        ],
    ],
],
```

Middleware classes are resolved from the container with full dependency injection.

DI Bindings
-----------

[](#di-bindings)

The service provider registers these as singletons:

InterfaceImplementation`CommandBusInterface``CommandBus` with discovered handlers`QueryBusInterface``QueryBus` with discovered handlers`EventBusInterface``EventBus` with discovered listeners`EventStoreInterface``DatabaseEventStore` or `InMemoryEventStore``SnapshotStoreInterface``DatabaseSnapshotStore` or `InMemorySnapshotStore``SagaStoreInterface``DatabaseSagaStore` or `InMemorySagaStore``ModuleRegistryInterface``InMemoryModuleRegistry`Store driver falls back to in-memory when the configured package is not installed.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10, 11, or 12

Optional packages (installed as needed):

- `solidframe/ddd` — for `make:entity`, `make:value-object`, `make:aggregate-root`
- `solidframe/cqrs` — for CommandBus, QueryBus, handler discovery
- `solidframe/event-driven` — for EventBus, listener discovery
- `solidframe/event-sourcing` — for EventStore, SnapshotStore
- `solidframe/modular` — for module support
- `solidframe/saga` — for SagaStore

Related Packages
----------------

[](#related-packages)

- [solidframe/core](../core) — Bus interfaces, Middleware
- [solidframe/ddd](../ddd) — Entity, ValueObject, AggregateRoot
- [solidframe/cqrs](../cqrs) — CommandBus, QueryBus
- [solidframe/event-driven](../event-driven) — EventBus, Listeners
- [solidframe/event-sourcing](../event-sourcing) — EventStore, Snapshots
- [solidframe/modular](../modular) — Module contracts
- [solidframe/saga](../saga) — Saga lifecycle
- [solidframe/symfony](../symfony) — Symfony alternative

Contributing
------------

[](#contributing)

This repository is a read-only split of the [solidframe/solidframe](https://github.com/solidframe/solidframe) monorepo, auto-synced on every push to `main`. Issues, pull requests, and discussions belong in the monorepo.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance81

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Unknown

Total

1

Last Release

101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97de2a466719393a21a8ce5caef247a1afb8aec5a8974248da0583f4197765b2?d=identicon)[abdulkadir-posul](/maintainers/abdulkadir-posul)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M246](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M673](/packages/laravel-boost)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

728176.2k14](/packages/tallstackui-tallstackui)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)

PHPackages © 2026

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