1.新建一个网站,只用到composer.json
根目录composer.json代码如下
- {
- "name": "topthink/think",
- "description": "the new thinkphp framework",
- "type": "project",
- "keywords": [
- "framework",
- "thinkphp",
- "ORM"
- ],
- "homepage": "http://thinkphp.cn/",
- "license": "Apache-2.0",
- "authors": [
- {
- "name": "liu21st",
- "email": "liu21st@gmail.com"
- }
- ],
- "require": {
- "php": ">=5.6.0",
- "topthink/framework": "^5.1",
- "phpoffice/phpspreadsheet":"1.8.2",
- "jaeger/querylist":"4.0.2"
- },
- "autoload": {
- "psr-4": {
- "app\": "application"
- }
- },
- "extra": {
- "think-path": "thinkphp"
- },
- "config": {
- "preferred-install": "dist"
- }
- }
复制代码
2.使用网站的composer面板,composer选择2.0.13,php版本选择7.0,执行参数选择install,然后执行失败
|