PHP code example of cblink-service / form-schema-sdk
1. Go to this page and download the library: Download cblink-service/form-schema-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cblink-service / form-schema-sdk example snippets
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(['