AdnanHussainTurki / microsoft-api-php

Microsoft Graph API Wrapper for PHP
25 stars 6 forks source link

Failed to install #8

Open khaledkarman opened 8 months ago

khaledkarman commented 8 months ago

PHP 8.0.23 Composer version 2.5.8 2023-06-09 17:13:21

composer require adnanhussainturki/microsoft-api-php
./composer.json has been updated
Running composer update adnanhussainturki/microsoft-api-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - adnanhussainturki/microsoft-api-php[0.01, ..., 0.04] require microsoft/microsoft-graph ^1.0 -> found microsoft/microsoft-graph[1.0.0, ..., 1.110.0] but it conflicts with your root composer.json require (^2.2).
    - Root composer.json requires adnanhussainturki/microsoft-api-php * -> satisfiable by adnanhussainturki/microsoft-api-php[0.01, 0.02, 0.03, 0.04].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require adnanhussainturki/microsoft-api-php:*" to figure out if any version is installable, or "composer require adnanhussainturki/microsoft-api-php:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
ArjunKishore commented 2 months ago

This package require microsoft/microsoft-graph ^1.0 if you are using microsoft/microsoft-graph ^2.0 it would cause this error