ads/ajax-crud-generator
Composer 安装命令:
composer require ads/ajax-crud-generator
包简介
Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals
README 文档
README
Agility Data Systems Scaffolding Generator for AJAX Crud
This module creates partial files to use in conjunction with the AJAX Crud JS plugin (https://github.com/DavidVranish/AjaxCrud)
Step 1:
Set up composer, add the package to your require tag:
"ads/ajax-crud-generator": "1.0.*"
Also add a publish command so that the files stay up to date:
"scripts": {
...
"post-update-cmd": [
...
"php artisan vendor:publish --provider=\"Ads\\AjaxCrud\\AjaxCrudServiceProvider\" --tag=partials --force",
"php artisan vendor:publish --provider=\"Ads\\AjaxCrud\\AjaxCrudServiceProvider\" --tag=commands --force",
...
run
composer update
Step 2: Publish the necessary files
Add the service provider to config/app.php:
...
'Ads\AjaxCrud\AjaxCrudServiceProvider',
...
Run:
php artisan vendor:publish --provider="Ads\AjaxCrud\AjaxCrudServiceProvider"
Step 3: Add the command to the app/Console/Kernel.php to use in command line:
'App\Console\Commands\AjaxCrudCommand',
Step 4: Set up the location to the AjaxCrud plugin
If you are using Bower, there is no need to modify to config file, simply add this line to your bower.json file:
"ajax_crud": "git@github.com:DavidVranish/AjaxCrud.git"
If you are not going to use Bower to, you need to modify the config file to point to the location of AjaxCrud[.min].js file:
For example:
'ajax_crud_js_path' => '/js/ajax_crud/js/AjaxCrud.min.js',
Step 5: Add HTML dependencies to your master layout blade file:
@include('partials.modals.delete_modal')
@include('partials.modals.edit_crud_modal')
@include('partials.modals.new_crud_modal')
and
<script type="text/javascript" src="{{ asset(config('ajaxCrud.ajax_crud_js_path')) }}"></script>
Step 6: You can now create scaffolding through the php artisan command line:
php artisan make:crud --controllerPrefix=[Vendor] --crudModel=[Contact]
The controller prefix is the capitalized prefix for the controller that will handle the CRUD request, the model name is the capitalized name of the primary model being edited
ads/ajax-crud-generator 适用场景与选型建议
ads/ajax-crud-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 555 次下载、GitHub Stars 达 5, 最近一次更新时间为 2015 年 06 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「AJAX CRUD JS Support」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ads/ajax-crud-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ads/ajax-crud-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ads/ajax-crud-generator 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Gii Generator for double model generation
Selenium4 (WebDriver) driver for Mink framework
laravel middleware to allow ajax only calls
Sitemap crawler/generator. For the given URL it will return sitemap XML file with URLs and images.
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.
统计信息
- 总下载量: 555
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPLv3
- 更新时间: 2015-06-29