Skip to main content
Back to packages
1,182 GitHub stars

InterNACHI/modular

View on GitHub

Description

internachi/modular is a module system for Laravel applications. It uses Composer path repositories for autoloading, and Laravel package discovery for module initialization, and then provides minimal tooling to fill in any gaps.

Create a module

Next, let's create a module:

php artisan make:module my-module

Modular will scaffold up a new module for you:

app-modules/
my-module/
composer.json
src/
tests/
routes/
resources/
database/

It will also add two new entries to your app's composer.json file. The first entry registers ./app-modules/my-module/ as a path repository, and the second requires modules/my-module:* (like any other Composer dependency).

Modular will then remind you to perform a Composer update, so let's do that now:

composer update modules/my-module

Related Content on Laravel Daily

Video

Recent Courses on Laravel Daily