xefi / laravel-osdd
Package to handle OSDD in a Laravel application.
Requires
- php: ^8.3
- ext-dom: *
- laravel/framework: ^12 || ^13
Requires (Dev)
- orchestra/testbench: ^10.0
This package is auto-updated.
Last update: 2026-03-19 21:05:47 UTC
README
A Laravel package that restructures your application into independently composable layers — each one a self-contained Composer package with its own models, migrations, seeders, tests, and service provider.
Full documentation at laravel-osdd.xefi.com.
The Problem
Standard Laravel applications accumulate unrelated code in shared directories. As the application grows, app/ mixes users, orders, products, and infrastructure with no clear domain boundaries. Refactoring becomes costly and testing becomes slow.
The Solution
OSDD isolates each domain concern into its own Composer package:
functional/
users/ ← Independent layer (composer.json, src/, database/, tests/)
billing/
technical/
osdd/ ← OSDD configuration layer
Requirements
- PHP
^8.3 - Laravel
^12.0or^13.0
Installation
composer require xefi/laravel-osdd php artisan osdd:start
Commands
| Command | Description |
|---|---|
osdd:start |
Scaffold a fresh project with full OSDD architecture |
osdd:layer |
Create a new layer interactively or with arguments |
osdd:seed |
Run seeders registered across all layers |
osdd:phpunit |
Sync phpunit.xml with each layer's test suite |
All standard make:* commands are available as osdd:* variants, placing generated files inside the target layer. See the full command reference.
Support us
Since 1997, XEFI is a leader in IT performance support for small and medium-sized businesses through its nearly 200 local agencies based in France, Belgium, Switzerland and Spain. A one-stop shop for IT, office automation, software, digitalization, print and cloud needs. Want to work with us ?
License
MIT — see LICENSE.
