larakeeps/lara-driven
Composer 安装命令:
composer require larakeeps/lara-driven
包简介
Lara-Driven is a package designed to create and organize layers using the Domain Drive Design methodology.
关键字:
README 文档
README
Lara-Driven
Lara-Driven is a package designed to create and organize layers using the Domain Drive Design methodology.
This repository is only compatible with laravel: 7.* to 11.*
Installation
First Step, execute the command.
composer require larakeeps/lara-driven
Second step, add the LaraDrivenServiceProvider. Open config/app.php and add a new item to the providers array.
'providers' => ServiceProvider::defaultProviders()->merge([ /* * add the service provider below. */ \Larakeeps\LaraDriven\Providers\LaraDrivenServiceProvider::class //rest of your code...... ]
now lara-driven is ready for operation.
lara-drive command has an argument called domain, where you can directly specify the name of the domain to be created.
php artisan lara-driven:make {domain?}
To publish lara-driven settings, run the command below
php artisan lara-driven:publish //OR php artisan vendor:publish --tag=lara-driven-config
To populate the seeds, run the command below
php artisan lara-driven:seed
If you need to run only one seed, use the command with the --domain= option, passing the seed domain and all seeders in the domain will be executed.
If you need to run more than one specific seed, do so in the following ways using the --domain= option.
Option 1: --domain=User,Group,Event
Option 2: --domain=User --domain=Group --domain=Event
php artisan lara-driven:seed --domain=?
To create a domain with the help of Lara-Driven, run the command below.
php artisan lara-driven:make
After executing the command, simply pass the information requested by Lara-Driven into the terminal. Below is an example of information.
Enter your domain name: > Company Do you want to keep the domain name as the folder name? [Company] (yes/no) [yes]: > yes Do you want to create a [Model] for the domain? (yes/no) [yes]: > yes Do you want to create [Migration], [Seed] or [Factory]? (yes/no) [yes]: > yes Select one or more classes to manipulate your database. [Migration]: [0] Migration [1] Seed [2] Factory [3] All > 3 Do you want to create a [Policy] for your model? (yes/no) [no]: > yes Do you want to create an empty [Service]? (yes/no) [no]: > no Do you want to create an [Interface] for your service? (yes/no) [no]: > yes Do you want to create the [Repository] to separate model actions from your service? (yes/no) [yes]: > yes Do you want to create an [Interface] for your repository? (yes/no) [no]: > yes Do you want to create a [Controller] for your domain? (yes/no) [yes]: > yes Do you want to create a [Request] for processing and validation of your controller? (yes/no) [yes]: > yes Do you want to install [Routes] on your domain? (yes/no) [yes]: > yes Which routes do you want to install? [Web]: [0] Web [1] Api [2] Both > 2 Do you want to assign the routes to the [Controller]? (yes/no) [yes]: > yes Do you want to add [Middleware] to your routes? (yes/no) [yes]: > yes Do you want to create the [Config] file on your domain? (yes/no) [yes]: > yes Do you want to create the [Command] file for your domain? (yes/no) [no]: > yes INFO Clearing cached bootstrap files. events .................................................................................................................................. 1ms DONE views ................................................................................................................................... 4ms DONE cache ................................................................................................................................... 2ms DONE route ................................................................................................................................... 2ms DONE config .................................................................................................................................. 1ms DONE compiled ................................................................................................................................ 1ms DONE
Don't forget to follow me on github and star the project.
My contacts
E-mail: douglassantos2127@gmail.com
Linkedin: Acessa Perfil
larakeeps/lara-driven 适用场景与选型建议
larakeeps/lara-driven 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 493 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「mvc」 「code」 「design」 「laravel」 「driven」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 larakeeps/lara-driven 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 larakeeps/lara-driven 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 larakeeps/lara-driven 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Kinikit - PHP Application development framework MVC component
Promotional Codes Generator for Laravel 5.1
Zend Captcha bundle
Base Skeleton for Laravel Application
统计信息
- 总下载量: 493
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-13