就拿安装phpexcel为例在当前项目中的 composer.json
文件加入
composer install 或composer update
Problem 1
- This package requires php >=5.6.0 but your PHP version (5.5.38) does not satisfy that requirement.
Problem 2
- topthink/framework v5.1.39 requires php >=5.6.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- topthink/framework v5.1.39 requires php >=5.6.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- topthink/framework v5.1.39 requires php >=5.6.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- Installation request for topthink/framework (locked at v5.1.39, required as 5.1.*) -> satisfiable by topthink/framework[v5.1.39].
删除 composer.lock 文件,重新执行 composer install