taskforcedev/crud-api
Composer 安装命令:
composer require taskforcedev/crud-api
包简介
A laravel package providing an admin interface to create, edit and delete models.
README 文档
README
Status: Testing Ready
We have tested the package in multiple scenarios and are comfortable using it in our own production contexts. Please let us know however if you do encounter an issue.
Integration Tests
| Laravel 5.3 / CrudAPI 1.0.x | |
| Laravel 5.4 / CrudAPI 1.1.x | |
| Laravel 5.5 / CrudAPI 1.1.x |
This package provides administration interfaces for models out of the box, in order for this to work Laravel 5.3 conventions must be followed as per the assumptions below:
Assumptions
- The package uses the $fillable attribute on your model in order to populate crud forms
- Models:
- Models must have a public property $validation containing the array of validation rules.
- Authorization: Policies must be created to provide access to each model or extend a policy with a generic admin before filter.
User Model: This package assumes users will register on their own accord or be able to reset their own password, therefor any field called Password (or lowercase) will be hidden from the admin forms for security purposes.
Installation
To install add the package to your projects composer.json
Laravel 5.3
"require": {
"taskforcedev/crud-api": "1.0.*"
}
Laravel 5.4
"require": {
"taskforcedev/crud-api": "1.1.*"
}
Once installed add the service provider in your laravels config/app.php.
'providers' => [
...
// Add the laravel support class also if not already present.
Taskforcedev\LaravelSupport\ServiceProvider::class,
Taskforcedev\CrudApi\ServiceProvider::class,
]
Laravel 5.5
"require": {
"taskforcedev/crud-api": "1.1.*"
}
If you wish to use your own layout in the admin api then follow the instructions from https://github.com/taskforcedev/laravel-support to publish the taskforce-support config and set the layout name there.
In this case a yield is required for scripts to output the javascript required by the framework as well as jquery and bootstrap being included in your application
@yield('scripts')
Configuration
Overriding the configuration is not currently in use however support for other frameworks may be added in the future, incase you wish to override or add to the config use:
php artisan vendor:publish --tag="crudapi-config"
You will then see Copied File at /config/crudapi.php
Technologies Used
- Laravel 5.3+
- Bootstrap
Contributing
Please see file CONTRIBUTING.md for information on how you can help.
Security
If you find a security issue in this package please raise an issue with a prefix of [Security] on our Issue Board
License
taskforcedev/crud-api 适用场景与选型建议
taskforcedev/crud-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.57k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2015 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「crud」 「laravel」 「views」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 taskforcedev/crud-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 taskforcedev/crud-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 taskforcedev/crud-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Gii Generator for double model generation
2lenet/EasyAdminPlusBundle
Analysis module for finding problematical shop data.
A PSR-7 compatible library for making CRUD API endpoints
Admin panel generator for Laravel 8 and based on Vuetify Admin, a separate SPA admin framework running on top of REST APIs.
Collection of tools to use the full power of the Enyalius framework
统计信息
- 总下载量: 8.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-16