Skip to content

Commit 5e98472

Browse files
lramosveaCopilot
andcommitted
docs: add PHP 8.2 minimum version requirement and upgrade guidance
- README.md: Added Prerequisites section with PHP 8.2 requirement - UPGRADING.md: Added breaking change section documenting the drop of PHP 7.4, 8.0, and 8.1 support with EOL dates and migration steps Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6af2fc5 commit 5e98472

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
[![PHP Version Require](http://poser.pugx.org/microsoft/microsoft-graph/require/php)](https://packagist.org/packages/microsoft/microsoft-graph)
77

88
## Install the SDK
9+
10+
### Prerequisites
11+
- PHP 8.2 or later (see [PHP supported versions](https://www.php.net/supported-versions.php))
12+
913
You can install the PHP SDK with Composer by editing your `composer.json` file:
1014
```jsonc
1115
{

UPGRADING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
This guide highlights breaking changes, bug fixes and new features introduced during major upgrades.
44

55

6+
# Upcoming Breaking Change: Minimum PHP version raised to 8.2
7+
8+
The SDK now requires **PHP 8.2 or later**. Support for PHP 7.4, 8.0, and 8.1 has been removed.
9+
10+
## Why
11+
12+
PHP 7.4 (EOL Nov 2022), PHP 8.0 (EOL Nov 2023), and PHP 8.1 (EOL Dec 2025) no longer receive security updates from the PHP project. Continuing to support them prevented us from updating dependencies that have already dropped these versions, introducing potential security vulnerabilities.
13+
14+
## What to do
15+
16+
- Run `php -v` to check your current PHP version.
17+
- If you are on PHP 7.4, 8.0, or 8.1, upgrade to PHP 8.2 or later before updating the SDK.
18+
- No code changes are required — only the PHP runtime version needs to be updated.
19+
20+
**Supported PHP versions:** 8.2, 8.3, 8.4
21+
22+
See https://www.php.net/supported-versions.php for PHP's official support lifecycle.
23+
24+
625
# Upgrading to 2.0.0
726
- [New Features](#new-features)
827
- [Breaking Changes](#breaking-changes)

0 commit comments

Comments
 (0)