💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` 可以直接使用composer命令。 D:\\phpStudy>cd D:\\phpStudy D:\\phpStudy>cd www D:\\phpStudy\\WWW>cd 20210423 D:\\phpStudy\\WWW\\20210423>composer create-project "topthink/think=5.1.\* tp5" \[InvalidArgumentException\] Composer could not find a composer.json file in D:\\phpStudy\\WWW\\20210423 To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section create-project \[-s|--stability STABILITY\] \[--prefer-source\] \[--prefer-dist\] \[--r epository REPOSITORY\] \[--repository-url REPOSITORY-URL\] \[--dev\] \[--no-dev\] \[--no \-custom-installers\] \[--no-scripts\] \[--no-progress\] \[--no-secure-http\] \[--keep-vc s\] \[--no-install\] \[--ignore-platform-reqs\] \[--\] \[\] \[\] \[<vers ion>\] D:\\phpStudy\\WWW\\20210423>composer create-project "topthink/think=5.1.\*" tp5 \[InvalidArgumentException\] Composer could not find a composer.json file in D:\\phpStudy\\WWW\\20210423 To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section create-project \[-s|--stability STABILITY\] \[--prefer-source\] \[--prefer-dist\] \[--r epository REPOSITORY\] \[--repository-url REPOSITORY-URL\] \[--dev\] \[--no-dev\] \[--no \-custom-installers\] \[--no-scripts\] \[--no-progress\] \[--no-secure-http\] \[--keep-vc s\] \[--no-install\] \[--ignore-platform-reqs\] \[--\] \[\] \[\] \[<vers ion>\] D:\\phpStudy\\WWW\\20210423>composer init Welcome to the Composer config generator This command will guide you through creating your composer.json config. Package name (/) \[administrator/20210423\]: Description \[\]: Author \[, n to skip\]: Invalid author string. Must be in the format: John Smith Author \[, n to skip\]: john smith john@qq.com Invalid author string. Must be in the format: John Smith Author \[, n to skip\]: john smith Minimum Stability \[\]: Package Type (e.g. library, project, metapackage, composer-plugin) \[\]:project ~~~ License []:MIT ~~~ Define your dependencies. Would you like to define your dependencies (require) interactively \[yes\]? y Search for a package: Would you like to define your dev dependencies (require-dev) interactively \[yes\] ? yes Search for a package: topthink/think Warning from https://packagist.org: You are using an outdated version of Compose r. Composer 2 is now available and you should upgrade. See https://getcomposer.o rg/2 Enter the version constraint to require (or leave blank to use the latest versio n): 5.1.20 Search for a package: { "name": "administrator/20210423", "type": "topthink/think", "require-dev": { "topthink/think": "5.1.20" }, "authors": \[ { "name": "john smith", "email": "john@qq.com" } \], "require": {} } Do you confirm generation \[yes\]? yes D:\\phpStudy\\WWW\\20210423> composer config -g repo.packagist composer [https://mirrors.aliyun.com/composer/](https://mirrors.aliyun.com/composer/) composer install ```