Modulator: Modules that stay Laravel
Modulator turns a folder with app/ into a Laravel module: classes autoload without Composer changes, providers, routes, views and migrations load the Laravel way, and modules shipped by packages can be overridden with a local copy.
Compatibility
Each line is released for the versions in its row, read from that release's composer.json. Pick the line that matches your project; a combination not listed isn't supported. Find the right line of every package for your project.
| Line | Latest release | PHP | Laravel | Status | Docs |
|---|---|---|---|---|---|
| v13.x | v13.0.1 Nov 23, 2026 | 8.3 – 8.5 | 13 | Current | Docs: Read the v13.x docs |
| v12.x | v12.0.1 Nov 23, 2026 | 8.2 – 8.5 | 12 | Maintained | Docs: Read the v12.x docs |
| v11.x | v11.2.1 Nov 23, 2026 | 8.2 – 8.4 | 11 | MaintainedLaravel 11 no longer gets security fixes | Docs: Read the v11.x docs |
| v10.x | v10.1.1 Nov 23, 2026 | 8.1 – 8.3 | 10 | MaintainedLaravel 10 no longer gets security fixes | Docs: Read the v10.x docs |
| v9.x | v9.1.0 Nov 21, 2026 | 8.0 – 8.2 | 9 | MaintainedLaravel 9 no longer gets security fixes | Docs: Read the v9.x docs |
| v8.x | v8.0.0 Nov 21, 2026 | 8.0 – 8.1 | 8 | MaintainedLaravel 8 no longer gets security fixes | Docs: Read the v8.x docs |
| v7.x | v7.0.0 Nov 21, 2026 | 8.0 | 7 | MaintainedLaravel 7 no longer gets security fixes | Docs: Read the v7.x docs |
| v6.x | v6.0.1 Nov 21, 2026 | 8.0 | 6 | MaintainedLaravel 6 no longer gets security fixes | Docs: Read the v6.x docs |
Maintenance
- Latest release
- v13.0.1
- Nov 23, 2026 (3 days ago)
From the package's releases and its GitHub Actions. A passing run means the test suite passed on develop, on every PHP version it supports; it isn't a security review, and each release line has its own runs on GitHub. Checked hourly.
A quick look
A module class, used anywhere, with the registry one call away.
1use Modules\Shop\Models\Product; 2use Pharaonic\Laravel\Modulator\Facades\Modules; 3 4// Modules/Shop/app/Models/Product.php, autoloaded by convention 5Route::get('/products', function () { 6 return Product::query()->latest()->get(); 7}); 8 9Modules::find('Shop')->isEnabled(); // true10Modules::find('Shop/Orders')->parent(); // "Shop"Everything a modular Laravel app needs
Create a folder with app/ and it is a module; the commands do the rest.
Convention Discovery
Modules/Shop/app/Models/Product.php is Modules\Shop\Models\Product, with no composer.json per module.
Nested Modules
Child modules at any depth (Commerce/Checkout), with a disabled parent disabling its children.
Package Modules
Packages declare module pools; module:publish copies a module locally and the local copy wins.
Every Composer Mode
Tested under the default, --optimize and --classmap-authoritative autoloaders.
Generators
module:make plus a module:make:* for every Laravel make:*, with stubs you can replace.
Safe By Default
module:enable edits your config in place, module:delete confirms, and module:migrate:fresh never drops your database.
Architecture Checks
module:doctor, module:graph and module:check find broken sources, dependency cycles and undeclared module dependencies.
Namespaced Resources
Views, translations and config are namespaced by slug: view('shop::index'), __('shop::messages.key'), config('modules.shop.billing').
AI Ready
Ships a Laravel Boost guideline and a modulator-development skill, so php artisan boost:install teaches Claude Code, Cursor, Codex or Copilot the module layout and every module:* command.
Resources
- DocumentationInstallation, configuration and every API, per version.
- Source on GitHubRead the code, star it, or watch for releases.
- PackagistVersions and install statistics.
- Release notesWhat changed in each release.
- Report an issueFound a bug or missing a feature? Tell us.
- ContributeOpen a pull request; every contributor is credited.
Modulator Questions
Quick answers about installing and using Modulator.
What is Modulator?
Laravel-native modules discovered by convention, nested at any depth, shipped by Composer packages and overridden locally, autoloaded in every Composer mode. It's a free, open-source Laravel package by Pharaonic.
How do I install Modulator?
Run composer require pharaonic/laravel-modulator in your project's root directory.
What does Modulator require?
The latest release requires PHP 8.3 – 8.5 and Laravel 13.
Do modules need their own composer.json?
No. A directory with app/ in a pool is a module, and its classes autoload from it, including with composer dump-autoload --classmap-authoritative after php artisan module:cache.
Can a Composer package ship modules?
Yes. The package declares its pools under extra.pharaonic.modulator.pools in its composer.json, and php artisan module:publish copies a module into your application, where the local copy overrides the package.
Do my 1.x modules keep working?
Yes. Modules in app/Modules are discovered by the app pool with the 1.x rules. The documentation has an upgrade guide for moving them to the new layout.
Is Modulator AI ready?
Yes. It ships a Laravel Boost guideline and a modulator-development skill. Run php artisan boost:install in an application that uses Laravel Boost, and your coding agent (Claude Code, Cursor, Codex, Copilot…) learns the module layout, the module:* commands and the integrations.
Is Modulator free to use?
Yes. Modulator is open source under the MIT license, so you can use it in personal and commercial projects.
Where can I find the Modulator documentation?
Read the Modulator documentation for setup, configuration, and usage examples.
How do I report a bug or contribute to Modulator?
Open an issue or a pull request on GitHub, ask in GitHub Discussions, or chat with us on Discord.
Ready to dig in?
Read the full documentation for module conventions, nested modules, package pools and publishing, enabling and disabling, generators, database commands, deployment and autoloading, diagnostics, and the upgrade guide from 1.x.