connor-lock05/laravel-bundles
Composer 安装命令:
composer require connor-lock05/laravel-bundles
包简介
Developer package to improve make commands for common 'bundles' of files
README 文档
README
Laravel Bundles is a development package that aims to make creating files using artisan commands easier. It achieves this by defining preset 'bundles' in a bundles config file.
Publish Config
To publish the bundles config file run:
php artisan vendor:publish --tag=bundles-config
This will create a config file that looks like this:
<?php use ConnorLock05\LaravelBundles\Data\Makeables; return [ /* |-------------------------------------------------------------------------- | Bundles |-------------------------------------------------------------------------- | | This value is where you can define your bundles. | Add an array key with an associated array of files to make | | Example: Creates a Model, Controller and Create Migration | */ 'bundles' => [ 'example' => [ Makeables::Model, Makeables::Controller, Makeables::Migration, ], ], ];
The bundles array is where you can define your bundles. The array key is the name, and the value is an array of Makeables.
Example Definition
An example definition for a bundle would be:
use ConnorLock05\LaravelBundles\Data\Makeables; 'CRUD Item' => [ Makeables::Model, Makeables::ResourceController, Makeables::Migration, Makeables::Policy, ],
Turing the config file into:
<?php use ConnorLock05\LaravelBundles\Data\Makeables; return [ /* |-------------------------------------------------------------------------- | Bundles |-------------------------------------------------------------------------- | | This value is where you can define your bundles. | Add an array key with an associated array of files to make | | Example: Creates a Model, Controller and Create Migration | */ 'bundles' => [ 'example' => [ Makeables::Model, Makeables::Controller, Makeables::Migration, ], 'CRUD Item' => [ Makeables::Model, Makeables::ResourceController, Makeables::Migration, Makeables::Policy, ], ], ];
This bundle will create a Model, Controller (with the --resource option), migration and a policy
Making a Bundle
To make a defined bundle, simply run:
php artisan make:bundle
This will then present you with a list of defined bundles. Move to the one you want with the arrow keys and select with enter.
Each Makeable will then be triggered and prompt the user to enter details about the Makeable.
connor-lock05/laravel-bundles 适用场景与选型建议
connor-lock05/laravel-bundles 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 07 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「generator」 「bundles」 「development」 「laravel」 「make」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 connor-lock05/laravel-bundles 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 connor-lock05/laravel-bundles 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 connor-lock05/laravel-bundles 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
Library with classes to help you do batch.
GHT D-Tools Bundle
Bundles plugin for Craft Commerce
This is a Yii2 wrapper extension for PHP port of the official LESS processor http://lesscss.org.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-19