如何使用ThinkPHP 5搭建一个新项目?

更新于
2026-09-24 18:43:22
0阅读来源:SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计105个文字,预计阅读时间需要1分钟。

如何使用ThinkPHP 5搭建一个新项目?

使用ThinkPHP 5创建项目并安装:

bashcomposer create-project topthink/think blog --prefer-dist

创建后台入口控制器:

bashphp think make:controller admin/Entry --plain

创建后台登录控制器:

bashphp think make:controller admin/Login --plain

如何使用ThinkPHP 5搭建一个新项目?

thinkphp 5 创建项目

安装thinkphp5 composer create-project topthink/think blog --prefer-dist 创建登台入口 php think make:controller admin/Entry --plain 创建登台控制器 php think make:controller admin/Login --plain

本文共计105个文字,预计阅读时间需要1分钟。

如何使用ThinkPHP 5搭建一个新项目?

使用ThinkPHP 5创建项目并安装:

bashcomposer create-project topthink/think blog --prefer-dist

创建后台入口控制器:

bashphp think make:controller admin/Entry --plain

创建后台登录控制器:

bashphp think make:controller admin/Login --plain

如何使用ThinkPHP 5搭建一个新项目?

thinkphp 5 创建项目

安装thinkphp5 composer create-project topthink/think blog --prefer-dist 创建登台入口 php think make:controller admin/Entry --plain 创建登台控制器 php think make:controller admin/Login --plain