PHP code example of colaphp / core

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

    

colaphp / core example snippets


//定义根目录
define('ROOT_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
//定义App目录
define('APP_PATH', ROOT_PATH . 'app' . DIRECTORY_SEPARATOR);
//运行
\Colaphp\Core\App::run();