pharaonic / laravel-modulator
Laravel-native modules for Laravel: convention-based discovery, nested submodules, package-provided modules with local overrides, and production-safe autoloading without per-module composer.json files.
13.0.1
2026-11-23 16:46 UTC
Requires
- php: >=8.3 <8.6
- laravel/framework: ^13.0
- pharaonic/php-smart-enum: ~8.3.0 || ~8.4.0 || ~8.5.1
Requires (Dev)
- laravel/pint: ^1.20
- orchestra/testbench: ^11.0
- phpstan/phpstan: ^2.1.33
- phpunit/phpunit: ^12.5.8
Suggests
- filament/filament: Adds the Filament 3, 4 or 5 resources, pages and widgets of modules to their panels (module:make:filament-resource).
- livewire/livewire: Registers the Livewire 3 or 4 components of modules (module:make:livewire).
- pharaonic/laravel-executor: Adds the executors folder of modules to the executor pool (module:make:executor).
Provides
None
Conflicts
None
Replaces
None
- dev-develop
- 13.x-dev
- 13.0.1
- 13.0.0
- 12.x-dev
- 12.0.1
- 12.0.0
- 11.x-dev
- 11.2.1
- 11.2.0
- 11.1.0
- 11.0.0
- 10.x-dev
- 10.1.1
- 10.1.0
- 10.0.0
- 9.x-dev
- 9.1.0
- 9.0.0
- 8.x-dev
- 8.0.0
- 7.x-dev
- 7.0.0
- 6.x-dev
- 6.0.1
- 6.0.0
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1.7
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.9
- 0.0.8
- 0.0.7
This package is auto-updated.
Last update: 2026-11-23 16:52:59 UTC
README
Laravel-native modules: discovered by convention, nested, overridable from packages, and autoloaded in every Composer mode.
Installation
composer require pharaonic/laravel-modulator
The service provider is registered automatically. Publish the configuration when you need to change it:
php artisan vendor:publish --tag=modulator-config
Usage
A directory with app/ under Modules/ is a module. No composer.json or manifest is needed:
php artisan module:make Shop php artisan module:make:model Shop Product --migration
// Modules/Shop/app/Models/Product.php namespace Modules\Shop\Models; use Illuminate\Database\Eloquent\Model; final class Product extends Model {} // Anywhere in the application Modules\Shop\Models\Product::query()->get(); Pharaonic\Laravel\Modulator\Facades\Modules::find('Shop')->isEnabled();
On deployment, after composer install, run php artisan module:cache.
Documentation
Full documentation: Laravel Modulator Documentation.
Support & Security
See SUPPORT.md and SECURITY.md. Contributions are welcome; see CONTRIBUTING.md.
License
MIT. See LICENSE.
