Download the PHP package dev-sajid/laravel-modular without Composer
On this page you can find all versions of the php package dev-sajid/laravel-modular. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-modular
Laravel Modular v2.0
Lightweight module system for Laravel 11+ applications. Drop modules under modules/{Name} and they are auto-discovered with zero configuration.
Features
- 🚀 Zero Dependencies: No external packages required
- 🔍 Auto-Discovery: Modules are automatically discovered and registered
- 📦 Convention-based: Follow simple naming conventions for instant setup
- 🎯 Laravel 11+ Compatible: Built for modern Laravel applications
- 🛠️ Artisan Integration: Generate modules with
php artisan make:module - 📁 Flexible Structure: Support for routes, views, migrations, config, translations, and more
- ⚡ High Performance: Lightweight with minimal overhead
Requirements
- PHP 8.2 or higher
- Laravel 11.0 or higher
Installation
Install the package via Composer:
The package will auto-register thanks to Laravel's package auto-discovery.
Quick Start
-
Generate a module:
-
Your module structure:
-
Run migrations:
- Access your module:
Visit
/blogin your browser!
Configuration
Publish the configuration file (optional):
This creates config/modular.php:
Module Structure
Each module can contain:
Examples
Creating a Blog Module
Generated controller (modules/Blog/Http/Controllers/BlogController.php):
Upgrading from v1.x
Version 2.0 includes several breaking changes:
Requirements
- PHP: Now requires 8.2+ (was 8.1+)
- Laravel: Now requires 11.0+ (was 10.0+)
To upgrade:
- Update your
composer.jsonto require PHP 8.2+ - Update to Laravel 11+
- Run
composer update dev-sajid/laravel-modular
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-modular with dependencies
illuminate/support Version ^11.0 || ^12.0
illuminate/filesystem Version ^11.0 || ^12.0
illuminate/console Version ^11.0 || ^12.0