Skip to content

Commit db24440

Browse files
Merge pull request #1767 from microsoftgraph/lramos-mar26
docs: add PHP 8.2 minimum version requirement and upgrade guidance
2 parents fb28b08 + 9092423 commit db24440

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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)