PHP code example of watsonhaw / lychee-php

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

    

watsonhaw / lychee-php example snippets


// public/index.php
tion;

$app = new Application(
    basePath: dirname(__DIR__),
    controllerNamespace: 'app\\controller',
);
$app->run();
bash
composer create-project watsonhaw/lychee-php-project your-app
bash
composer 
bash
php lee list                          # 查看所有命令
php lee migrate:run                   # 执行迁移
php lee migrate:rollback              # 回滚迁移
php lee migrate:create create_users_table  # 创建迁移模板
php lee seed:run                      # 数据填充
php lee seed:create UserSeeder        # 创建 Seeder 模板
php lee cron:run                      # 执行定时任务
php lee queue:work                    # 队列消费