hnllyrp/thinkphp-support

ThinkPHP 支持库

dev-main 2022-12-21 13:26 UTC

This package is auto-updated.

Last update: 2024-09-13 12:51:04 UTC


README

基于ThinkPHP提供扩展支持,主要版本tp6.0以上

安装依赖

composer require hnllyrp/think-support

目录结构

├─console 命令行
├─middleware 中间件
├─support
│  ├─facade
│  ├─traits
│  ├─shell
│  ├─Arr.php 常用数组函数
│  ├─helper.php

功能列表

  • 自定义指令:基于现有数据库,批量生成数据库模型文件

php think yrp:make:models model|entities

  • 自定义指令:基于现有数据库,生成数据库字典、目录结构

php think yrp:make:doc

php think yrp:make:doc struct --show_file

  • 自定义指令:基于现有数据库生成迁移文件

php think yrp:make:migration

  • 自定义指令:基于现有数据库生成seeder文件

php think yrp:make:seeder

php think yrp:make:seeder users

  • 生成storage目录,软链至public目录,类似laravel

php think storage:link

  • think-cors 中间件