github.com/InterNACHI/modular

Modularize your Laravel application

Open this visualization on its own page →

Contributors

19

Lines of Code

641

From

2020-07-05

To

2025-02-28

About InterNACHI/modular

Internachi/modular is a module system designed to help organize large Laravel applications by dividing them into separate, self-contained modules. Rather than creating its own conventions, the package leverages existing Laravel standards like package discovery and Composer path repositories, making it feel native to Laravel development. Modules are stored in an `app-modules/` directory and follow Laravel's standard directory structure and conventions, allowing features like commands, migrations, factories, policies, and Blade components to be automatically discovered without additional configuration.

The package provides lightweight tooling to manage modules, including Artisan commands to scaffold new modules, list existing ones, and synchronize project configurations like phpunit.xml. It extends Laravel's `make:` commands with a `--module` option, enabling developers to generate controllers, models, tests, and other Laravel artifacts directly within a specific module using familiar syntax. The package also handles Blade component and translation namespacing automatically, allowing modules to register components and language files that integrate seamlessly with the main application.

The primary advantage over alternatives like nwidart/laravel-modules is its adherence to Laravel conventions and lighter architectural footprint, making it ideal for projects seeking modular organization without departing from standard Laravel patterns. It's less suited for scenarios requiring dynamic third-party module enablement and disablement, but excels for teams wanting to better organize monolithic applications while maintaining Laravel's familiar development experience.

Share this video