PHP code example of echodao / framework

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

    

echodao / framework example snippets


/**
 * Demo Class
 * @var string connection
 * @var string table demo 
 * @var string options {"id":false,"primary_key":["demo_id","user_id"],"engine":"MyISAM","collation":"utf8_general_ci"}
 * @var string columns {"name":"demo_id","type":"integer"}
 * @var string columns {"name":"user_id","type":"integer"}
 * @var string columns {"name":"name","type":"string","options":{"limit":50,"comment":"标题"}}
 * @var string columns {"name":"status","type":"boolean","options":{"limit":1},"comment":"状态"}
 * @var string columns {"name":"create_time","type":"integer","options":{"null":true,"comment":"添加时间"}}
 * @var string indexes
 * @var string foreignkeys {}
 */