Search by

arsham / laravel-modular

arsham-sh

A Laravel module generator package

Package info

github.com/arsham-sh/laravel-modular

pkg:composer/arsham/laravel-modular

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-09-11 15:15 UTC

This package is auto-updated.

Last update: 2026-09-11 15:18:55 UTC


README

A lightweight Laravel module generator for building modular Laravel applications without third-party module packages.

Requirements

  • PHP 8.3+
  • Laravel 13

Installation

Install the package via Composer:

composer require arsham/laravel-modular

Laravel will automatically discover and register the package service provider.

Usage

Create a new module with:

php artisan module:make Auth

This generates the module structure inside the Modules directory:

Modules/
└── Auth/
    ├── App/
    │   ├── Console/
    │   ├── Http/
    │   │   ├── Controllers/
    │   │   ├── Middleware/
    │   │   └── Requests/
    │   ├── Models/
    │   ├── Providers/
    │   └── Services/
    ├── Database/
    │   ├── Factories/
    │   ├── Migrations/
    │   └── Seeders/
    ├── Routes/
    │   └── api.php
    ├── Tests/
    │   ├── Feature/
    │   └── Unit/
    └── module.json

Example

php artisan module:make User

The command creates:

Modules/
└── User/

Each module can contain its own controllers, requests, models, services, database resources, routes, and tests.

Philosophy

Laravel Modular is designed to keep modules organized and independent while staying close to Laravel's native structure.

It does not require a third-party modular architecture package.

License

Laravel Modular is open-sourced software licensed under the MIT license.