Download the PHP package kz370/laravel-modular without Composer
On this page you can find all versions of the php package kz370/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
A Laravel package for modular architecture with optional Filament v4 support, pattern inference, and reusable module generation.
Features
- 🧩 Modular Architecture - Build reusable, self-contained modules
- 🔍 Pattern Inference - Automatically detects your project patterns
- ⚡ Filament v4 Support - Optional Filament resource generation
- 🌐 Multi-language - Auto-generates translation files for your locales
- 🔄 Module Renaming - Safely rename modules with full reference updates
- ⚙️ Highly Configurable - Customize everything via config file
- 📦 Works with nwidart/laravel-modules - Extends the popular module package
Requirements
- PHP 8.2+
- Laravel 11.x or 12.x
- nwidart/laravel-modules 11.x or 12.x
- (Optional) Filament 3.x for Filament resource generation
Installation
The package auto-discovers, so no manual provider registration is needed.
Publish Configuration
Publish Stubs (Optional)
To customize the generated file templates:
Quick Start
Create a Module
List Modules
Rename a Module
Configuration
After publishing the config, customize config/laravel-modular.php:
Auto-Detection
Filament Configuration
Module Structure
Define which directories to generate:
Locales
Model Options
Policy Options
Filament Integration
If Filament is installed, the package generates resources that follow your project's patterns:
-
Create a module with Filament resources:
- Register in your Panel Provider:
Generated Structure
A module created with --with-filament will have this structure:
Commands
| Command | Description |
|---|---|
modular:make {name} |
Create a new module |
modular:rename {old} {new} |
Rename an existing module |
modular:list |
List all modules |
modular:make Options
| Option | Description |
|---|---|
--with-filament |
Generate Filament resources |
--plain |
Create minimal module structure |
--force |
Overwrite existing module |
--dry-run |
Preview without creating |
modular:rename Options
| Option | Description |
|---|---|
--dry-run |
Preview changes |
--force |
Skip confirmation |
--no-backup |
Skip backup creation |
Working with nwidart/laravel-modules
This package works alongside nwidart/laravel-modules. You can still use all their commands:
Testing
Changelog
See CHANGELOG.md for recent changes.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). See LICENSE.md for more information.
Credits
All versions of laravel-modular with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
nwidart/laravel-modules Version ^11.0|^12.0