PHP code example of watsonhaw / lychee-php-project

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

bash
php lee run
# 默认 http://127.0.0.1:8000
bash
php lee run                  # 启动开发服务器
php lee list                 # 查看所有命令
php lee route:list           # 查看路由列表
php lee migrate:run          # 执行迁移
php lee migrate:rollback     # 回滚迁移
php lee cron:run             # 运行定时任务
php lee queue:work           # 启动队列消费者