cblink-service/form-schema-sdk
最新稳定版本:v0.1.2
Composer 安装命令:
composer require cblink-service/form-schema-sdk
包简介
Package description here.
README 文档
README
.
Installing
$ composer require cblink-service/form-schema-sdk -vvv
Usage
use Cblink\Service\FormSchema\Table; use Cblink\Service\FormSchema\Schema; use Cblink\Service\FormSchema\Consts\FormSearchConst; $config = [ 'appid' => 'xxx', 'secret' => 'xxxx', // base_url ... ]; $schema = new Schema($config); $schema->table('category', function (Table $table) { $table->comment('分类'); $table->field('name')->label('分类名称')->rules(['required', 'string']) $table->field('sort')->label('权重')->default(999); $table->searchable('sort')->type(FormSearchConst::TYPE_EQ); // 不需要添加created_at 与 updated_at // ... });
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
统计信息
- 总下载量: 194
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-01