1、安装TP5.1
composer create-project topthink/think=5.1.* tp5 --prefer-dist
2、进入到项目目录
cd tp5
3、安装PHPexcel扩展
composer require phpoffice/phpexcel
4、安装think-captcha扩展包
composer require topthink/think-captcha=2.0.*
composer安装Thinkphp5/TP5及常用扩展插件(验证码,PHPexcel)
原文:https://www.cnblogs.com/iverson-3/p/15145322.html