alaminceazer/form
Composer 安装命令:
composer require alaminceazer/form
包简介
This will generate dynamic form data based on json data structure
README 文档
README
This Package will generate dynamic form Data based on json data Structure
Quick Installation
composer require alaminceazer/form
Service Provider & Facade (Optional on Laravel 5.5+)
Register provider and facade on your config/app.php file.
'providers' => [ ..., AlAmin\Form\FormServiceProvider::class, ]
Configuration
php artisan vendor:publish --provider="AlAmin\Form\FormServiceProvider"
You should now have a config/form.php file that allows you to configure the basics of this package
And that's it!
Lumen Installation
Copy the config
Copy the config file from vendor/alaminceazer/from/src/config/form.php to config folder of your Lumen application and rename it to form.php
Register your config by adding the following in the bootstrap/app.php before middleware declaration.
$app->configure('form');
Bootstrap file changes
Add the following snippet to the bootstrap/app.php file under the providers section as follows:
$app->register(AlAmin\Form\FormServiceProvider::class);
NOTE: By default in form.php configuration file get_key_by_name value is id.
You need change this key value to form_id to get data by the form_id you provided while creation.
API Documentation
// Sample POST request
curl --location --request POST '{{base_url}}/dynamic-form/forms' \
--header 'Content-Type: application/json' \
--data-raw '{
"source": "MYGP_new",
"form_id": 344,
"slug": "success-page",
"cache_key": "some:key",
"data": "{\"data1\": [], \"data2\": []}"
}'
//Sample GET request
curl --location --request GET '{{base_url}}/dynamic-form/forms/1' \
--header 'Content-Type: application/json'
Start building out some awesome Form!
alaminceazer/form 适用场景与选型建议
alaminceazer/form 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 4, 最近一次更新时间为 2023 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 alaminceazer/form 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 alaminceazer/form 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-20