PHP code example of ptadmin / easy

1. Go to this page and download the library: Download ptadmin/easy 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/ */

    

ptadmin / easy example snippets


use PTAdmin\Easy\Easy;
# 模型构建,提供了模型创建的CURD方法
$mod = Easy::mod();

# 模型字段构建,提供了字段创建的CURD方法
$field = Easy::field();

# 表单处理
$modTableName = ""; // 创建模型时的标识名称
$form = \PTAdmin\Easy\EasyForm::handler($modTableName);