manowartop/laravel-skeleton
Composer 安装命令:
composer require manowartop/laravel-skeleton
包简介
Base Skeleton for Laravel Application
关键字:
README 文档
README
The package is based on the Repository-Service Laravel Pattern Package:
Package link: https://github.com/manowartop97/repository-service-laravel-pattern
The package contains:
Code generator feature
Allows generating Classes/Interfaces/Traits
$template = new ClassTemplate();
$template->setType('class')->setName('ClassName')->setNamespace('Path\\To\\Class');
It is possible define properties, methods, constants, extends, implements, doc block comments, create abstract/final classes, set method body, etc...
Eloquent Model Generation Feature
Command php artisan skeleton:model:generate tableName - generates the model for the table, define all relations,
properties, define doc block with props annotations.
Repository-Service pattern files generation
Command php artisan skeleton:repository-service:generate {table} generates EntityRepositoryInterface &
EntityRepository and ServiceInterface & Service for Repository-Service Laravel Pattern Package.
Requests generation
Command skeleton:request:generate {namespace} {modelNamespace?} will generate a Request instance,
{namespace}will specify the folder of the new request (e.g.User\\StoreRequestwill create aApp\\Http\\Requests\\User\\StoreReqeust);{modelNamespace?}- is optional param. e.g.App\\Models\\ModelNamewill generate request with rules for modelfillableattributes;
Resource generation
Command skeleton:resource:generate {table} generates resource for a particular Model by table name
Api Resource Controller generation
Command skeleton:resource-controller:generate {table} will generate a resource controller for a particular Model
entity by table name;
The controller actions will be based on the Repository-Service laravel pattern package;
CRUD generation
Command skeleton:crud:generate {table} will generate the following instances:
- Model (if not exists)
- Repository Interface (if not exists)
- Repository (if not exists)
- Service Interface (if not exists)
- Service (if not exists)
- Resource (if not exists)
- StoreRequest and UpdateRequest (if not exists)
- Api Resource Controller (if not exists)
manowartop/laravel-skeleton 适用场景与选型建议
manowartop/laravel-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 261 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 09 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「repository」 「service」 「laravel」 「Skeleton」 「laravel code generator」 「code-generator」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 manowartop/laravel-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 manowartop/laravel-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 manowartop/laravel-skeleton 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
A fast and intuitive dependency injection container.
Registry service.
Laravel 5 - Repositories to the database layer
swagger-php - Generate interactive documentation for your RESTful API using phpdoc annotations
Service auto install for Nette Framework
统计信息
- 总下载量: 261
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-18