Looking to hire Laravel developers? Try LaraJobs

laravel-osdd maintained by xefi

Description
Package to handle OSDD in a Laravel application.
Last update
2026/06/01 18:37 (dev-main)
License
Links
Downloads
1 861

Comments
comments powered by Disqus

Laravel OSDD

Latest Version on Packagist Tests License

Laravel OSDD Landscape

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.0 or ^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.