composer require "overtrue/laravel-wechat:~5.0

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

(这是内存不足)

使用这个安装就可以了

COMPOSER_MEMORY_LIMIT=-1 composer require "overtrue/laravel-wechat:~5.0"

COMPOSER_MEMORY_LIMIT=-1指的是内存不受限

05-16 22:03