1. Go to this page and download the library: Download eternalphp/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/ */
eternalphp / framework example snippets
namespace app\Entity;
use framework\Database\Eloquent\Model;
class User extends Model
{
// 指定关联的数据表(如果表名为 users,框架会自动推断,但显式指定更安全)
protected $table = 'users';
// 指定主键(默认为 id)
protected $primaryKey = 'id';
}