devhridoy/l6modular
Composer 安装命令:
composer require devhridoy/l6modular
包简介
Modular pattern generator for Laravel 6.It is orginaly created by ArtemSchander, i was just implements for laravel 6
关键字:
README 文档
README
This package gives you the ability to use Laravel 6 with module system. You can simply drop or generate modules with their own controllers, models, views, translations and a routes file into the app/Modules folder and go on working with them.
Attention
"This package originally created by artem-schander", I just modified some code and implement for Laravel 6. Thanks.
Dcumentation
- Installation
- Getting started
- Usage
Istallation
The best way to install this package is through your terminal via Composer.
Run the following command from your projects root
composer require devhridoy/l6modular
Once this operation is complete, simply add the service provider to your project's config/app.php and you're done.
Service Provider
Devhridoy\L6modular\ModuleServiceProvider::class
Setting Started
The built in Artisan command php artisan make:module name [--no-migration] [--no-translation] generates a ready to use module in the app/Modules folder and a migration/translation if necessary.
Since version 1.3.0 you can generate modules named with more than one word, like foo-bar.
This is how the generated module would look like:
laravel-project/ app/ └── Modules/ └── FooBar/ ├── Controllers/ │ └── FooBarController.php ├── Models/ │ └── FooBar.php ├── Views/ │ └── index.blade.php ├── Translations/ │ └── en/ │ └── example.php ├── routes │ ├── api.php │ └── web.php └── helper.php
Usage
The generated RESTful Resource Controller and the corresponding routes/web.php make it easy to dive in. In my example you would see the output from the Modules/FooBar/Views/index.blade.php by opening laravel-project:8000/foo-bar in your browser.
Update 1.0.0 For Laravel 6
You have to follow the upper camel case name convention for the module folder. If you had a Modules/foo folder you have to rename it to Modules/Foo.
Also there are changes in the app/config/modules.php file. Now you have to return an array with the key enable instead of list.
License
L6 Modular is licensed under the terms of the MIT License (See LICENSE file for details).
devhridoy/l6modular 适用场景与选型建议
devhridoy/l6modular 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 149 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「generator」 「module」 「pattern」 「modules」 「laravel」 「modular」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 devhridoy/l6modular 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 devhridoy/l6modular 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 devhridoy/l6modular 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
A Laravel package for the Repository Design Pattern.
Inbox pattern process implementation for your Laravel Applications
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
A library for simple pattern matching.
Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
统计信息
- 总下载量: 149
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-09