博客
关于我
Thinkphp 笔记
阅读量:724 次
发布时间:2019-03-21

本文共 670 字,大约阅读时间需要 2 分钟。

ThinkPHP 笔记

安装Composer

安装Composer是使用ThinkPHP开发的基础工具,以下是详细的步骤教程:

composer config -g repo.packagist composer https://packagist.phpcomposer.com

更换TP源

如果需要加速包裹下载,可以切换到阿里云的镜像源:

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

创建项目

开始创建你的ThinkPHP项目,以下命令将帮助你完成初始化:

composer create-project topthink/think=5.1.* tp5

启动内置服务器

在开发环境中,以下命令可以快速启动ThinkPHP的内置服务器:

php think run

生成模块

如果你需要快速生成特定功能的模块,可以执行以下命令:

php think build --module test

生成控制器

想要快速生成控制器,可以在终端输入以下命令:

php think make:controller admin/Login

转载地址:http://xqrez.baihongyu.com/

你可能感兴趣的文章
python urllib2详解及实例
查看>>
Python url请求提示certificate verify failed unable to get local issuer certificate
查看>>
Python UTC 日期时间对象的 ISO 格式不包括 Z(祖鲁语或零偏移)
查看>>
python valueerror object2_python遇到错误记录
查看>>
python vars的作用
查看>>
Python vcrpy库:HTTP请求记录和重放
查看>>
Python virtualenv
查看>>
python vue3实现大文件分段续传(断点续传)--带暂停和继续功能
查看>>
Python WebDriver如何打印整个页面源(html)
查看>>
Python WebSocket自动化测试:构建高效接口测试框架
查看>>
Python Web开发
查看>>
Redis 配置文件杂项。
查看>>
Python web自动化测试 —— 文件上传
查看>>
Python web自动化测试 —— 文件上传!
查看>>
Python Web自动化测试开发环境搭建(附安装包与虚拟机环境)
查看>>
python win32api键盘_Python win32api.keybd_event模拟键盘输入
查看>>
python Windows显示当前鼠标坐标
查看>>
python Workbook 表格宽度
查看>>
python write报错a byte-like object is required.not str
查看>>
PYTHON调用大模型实现图片生成
查看>>