PHP code example of zoujingli / type-project

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

    

zoujingli / type-project example snippets

sh
composer create-project --no-install --no-plugins --no-scripts zoujingli/type-project my-app dev-main
cd my-app
php configure.php sqlite
composer install --no-plugins --no-scripts
php dev.php help
php dev.php check
sh
php /构建工具项目/vendor/bin/type create /本地模板目录 /新项目目录 sqlite
cd /新项目目录
composer install --no-plugins --no-scripts
php vendor/bin/type doctor type-app.json development
php vendor/bin/type dev type-app.json help
sh
git clone https://github.com/zoujingli/type-project.git my-app
cd my-app
php configure.php sqlite
composer install --no-plugins --no-scripts
php dev.php help
php dev.php check
text
app/
  main.php
  common/
    bootstrap/               Application 角色与模式、Settings 配置
    database/                所选驱动、SQLite 文件生命周期、迁移
    middleware/              关联日志与公开错误处理
  controller/HomeController.php
  system/
    controller/UserController.php
    service/UserService.php
    model/User.php
config/
  app.php
  database.php
  route.php
.env.example
dev.php
prepare.php
configure.php
type-app.json
sh
php dev.php migrate run
php dev.php migrate status
php dev.php migrate history