yamez/laravel-packer
Composer 安装命令:
composer create-project yamez/laravel-packer
包简介
Awesome Command Line Tool for speeding up your package creation.
README 文档
README
Laravel Packer
Laravel Packer was created by, and is maintained by Sarthak, and it is a Command Line Tool which is going to help you in creating package.
- Built on with Laravel-zero.
- Detailed tutorials found on Youtube playlist
Features
- Features
- Installation
- Creating new Package Scaffolding
- Same as Artisan commands
- Smart Clone
- CRUD Generator
- License
Installation
Install via composer.
Note: For windows user, first run composer global update
composer global require bitfumes/laravel-packer
Creating new Package Scaffolding
packr new your-package-name {vendor} {author} {author_email}
With the above command it will create package scaffolding for you.
Optional fields like 'vendor', 'author' and 'author_email' can also be given via command line interface if you are not willing to provide on command.
Same as Artisan commands
With this CLI, you will have access to all artisan commands you are familiar on Laravel.
You can create controller just like you do with php artisan
packr make:controller controller_name
Explore all commands, just run packr on your command line.
Now you can create Migrations and Factories also
Smart Clone
With packr clone command you can do 3 steps in just one.
packr clone {repositoryname}
This not only clone repository but also install composer and if that repository type is project, then it will generate key for project also.
Specify directory to clone
Just like git, you can clone repository to any directory, just give --dir= option for above command
packr clone {repositoryname} --dir={custom_directory_name}
Specify branch to clone
Just like git, you can clone any branch of given repository.
packr clone {repositoryname} --branch={branch_name}
Above command will create various files like
- Model with relationships
- Controller with all crud functions
- Routes based on web or api file
- factory
- migration
- unit test (if relationship is described in json)
- Feature test for all crud part
This not only clone repository but also install composer and if that repository type is project, then it will generate key for project also.
CRUD Generator
With packr crud command you can create crud for laravel appication with fully green tests
step 1
First we need to create a json structure for our migration of any model/table To do so run this command
packr crud:json {exactModelName}
step 2
Now you have json file, you can describe how your migration/schema is going to look. After giving all details you can now run command to actually create full crud for the model
packr crud:make {relativePathOfThatJsonFile}
Todo
- Add resource in controller for CRUD maker
- Add form request in controller for CRUD maker
License
This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the MIT license
yamez/laravel-packer 适用场景与选型建议
yamez/laravel-packer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「console」 「package maker」 「laravel package generator」 「laravel package maker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yamez/laravel-packer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yamez/laravel-packer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yamez/laravel-packer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
A table generator class for the PHP CLI.
Simple ASCII output of array data
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-12


