carlcandels/laravel-modulizer
最新稳定版本:v1.0.0
Composer 安装命令:
composer require carlcandels/laravel-modulizer
包简介
A Laravel 12-compatible package for modular architecture.
README 文档
README
A Laravel 12-compatible package that helps you organize your app into feature-based modules. Quickly scaffold routes, controllers, models, views, and service providers in isolated modules.
✨ Features
- Modular directory structure
- Artisan command to generate new modules
- Automatically registers routes and views
- Easy configuration and customization
📦 Installation
Require via Composer:
composer require carlcandels/laravel-modulizer Then publish the configuration file: php artisan vendor:publish --provider="YourName\\Modulizer\\ModulizerServiceProvider" --tag=modulizer-config 🚀 Usage Generate a module: php artisan module:make Blog This will create: modules/ └── Blog/ ├── Http/Controllers/ExampleController.php ├── Models/Example.php ├── Routes/web.php ├── Views/index.blade.php ├── Providers/BlogServiceProvider.php └── module.json ⚙️ Configuration Edit config/modulizer.php to change module paths or namespace. return [ 'path' => base_path('modules'), 'namespace' => 'Modules', ]; 🛠 Requirements PHP 8.2+ Laravel 12+ 📝 License MIT License © Your Name --- ✅ Once your package is on Packagist, you (and others!) can install it easily using: ```bash composer require carlcandels/laravel-modulizer
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-12