1
pinews OP es 的 json
{ "autoload": { "psr-4": { "App\\": "App/" } }, "require": { "easyswoole/easyswoole": "3.3.7" } } jg 的 json { "name": "jiguang/jmessage", "type": "library", "version": "1.1.13", "description": "JMessage's officially supported PHP client library for accessing JMessage APIs.", "keywords": ["jiguang", "jmessage", "API Client"], "homepage": "https://github.com/jpush/jmessage-api-php-client", "license": "MIT", "authors": [ { "name": "JiGuang", "email": "[email protected]", "homepage": "https://www.jiguang.cn" } ], "require": { "php": ">=5.4", "ext-curl": "*" }, "autoload" : { "psr-4": {"JMessage\\": "src/JMessage/"} } } |
2
littleylv 2020-06-09 10:40:16 +08:00
自己写一个 composer.json
{ "require": { "easyswoole/easyswoole": "^3.3.0", "jiguang/jmessage": "^1.1.0" } } 然后 composer install |
4
cvl 2020-06-09 11:42:22 +08:00
别忘了这句
"psr-4": {"JMessage\\": "src/JMessage/"} |
5
pinews OP 我在 esayswoole 的默认 composer.json 下加了"jiguang/jmessage": "^1.1.0",后提示
Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`. Nothing to install or update Generating autoload files 怎么办?小白一枚,composer 的文档看了 看不明白。。。 |