我刚刚在laravel中创建了一个新项目。
laravel new ldap
然后尝试使用
安装软件包composer require adldap2/adldap2-laravel
我遇到这样的错误
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- adldap2/adldap2-laravel v6.0.8 requires adldap2/adldap2 ^10.1 -> satisfiable by adldap2/adldap2[v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.0 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.1 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.2 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.3 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.4 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.5 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.6 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2-laravel v6.0.7 requires adldap2/adldap2 ^10.0 -> satisfiable by adldap2/adldap2[v10.0.0, v10.0.1, v10.0.10, v10.0.11, v10.0.2, v10.0.3, v10.0.4, v10.0.5, v10.0.6, v10.0.7, v10.0.8, v10.0.9, v10.1.0, v10.1.1, v10.2.0, v10.2.1, v10.2.2].
- adldap2/adldap2 v10.2.2 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.2.1 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.2.0 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.1.1 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.1.0 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.9 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.8 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.7 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.6 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.5 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.4 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.3 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
- adldap2/adldap2 v10.0.2 requires ext-ldap * -> the requested PHP extension ldap is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
我的composer.json文件
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^2.0"
},
不明白是什么问题
谢谢