Introduction
Installation
Install Laravel OSDD in your project.
Install via Composer
Terminal
composer require xefi/laravel-osdd
The package uses Laravel's package auto-discovery — LaravelOSDDServiceProvider is registered automatically. No manual registration needed.
Publish the Config (optional)
Terminal
php artisan vendor:publish --provider="Xefi\LaravelOSDD\LaravelOSDDServiceProvider"
This creates config/osdd.php in your project root.
Configuration
config/osdd.php
<?php
return [
'layers' => [
'paths' => [
'functional' => base_path('functional'),
'technical' => base_path('technical'),
]
]
];
| Key | Default | Description |
|---|---|---|
layers.paths.functional | {project_root}/functional | Root directory for domain/business layers |
layers.paths.technical | {project_root}/technical | Root directory for infrastructure layers |
You can add as many named path buckets as you like. When more than one exists,
osdd:layer will prompt you to choose which bucket a new layer belongs to.Next Steps
Once installed, you have two options:
- Fresh project — run
osdd:startto bootstrap the full OSDD architecture in one command. - Existing project — run
osdd:layerto add individual layers incrementally.