Skip to content
Laravel Packagev13.xMIT License1.3K+ downloadsAI Ready · Laravel Boost

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.

$composer require pharaonic/laravel-modulator

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.

LineLatest releasePHPLaravelStatusDocs
v13.xv13.0.1 Nov 23, 20268.3 – 8.513Current Docs: Read the v13.x docs
v12.xv12.0.1 Nov 23, 20268.2 – 8.512Maintained Docs: Read the v12.x docs
v11.xv11.2.1 Nov 23, 20268.2 – 8.411MaintainedLaravel 11 no longer gets security fixes Docs: Read the v11.x docs
v10.xv10.1.1 Nov 23, 20268.1 – 8.310MaintainedLaravel 10 no longer gets security fixes Docs: Read the v10.x docs
v9.xv9.1.0 Nov 21, 20268.0 – 8.29MaintainedLaravel 9 no longer gets security fixes Docs: Read the v9.x docs
v8.xv8.0.0 Nov 21, 20268.0 – 8.18MaintainedLaravel 8 no longer gets security fixes Docs: Read the v8.x docs
v7.xv7.0.0 Nov 21, 20268.07MaintainedLaravel 7 no longer gets security fixes Docs: Read the v7.x docs
v6.xv6.0.1 Nov 21, 20268.06MaintainedLaravel 6 no longer gets security fixes Docs: Read the v6.x docs

Maintenance

Latest release
v13.0.1
Nov 23, 2026 (3 days ago)
Released lines
8
documented lines with a release; see compatibility
CI on develop
Tests passed
latest run Nov 23, 2026

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.

routes/web.php
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(); // true
10Modules::find('Shop/Orders')->parent(); // "Shop"
Key Features

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.

FAQ

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.