Introduction

Installation

Install Laravel OSDD in your project.

Install via Composer

Terminal
composer require xefi/laravel-osdd

The package uses Laravel's package auto-discoveryLaravelOSDDServiceProvider 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'),
        ]
    ]
];
KeyDefaultDescription
layers.paths.functional{project_root}/functionalRoot directory for domain/business layers
layers.paths.technical{project_root}/technicalRoot 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:start to bootstrap the full OSDD architecture in one command.
  • Existing project — run osdd:layer to add individual layers incrementally.