AWS Developer Tools Blog

Announcing the end-of-support for PHP runtimes 8.0.x and below in the AWS SDK for PHP

Starting January 13, 2025, the AWS SDK for PHP will no longer support PHP 8.0.x, which reached end-of-life on November 26, 2023. Additionally, we will no longer support PHP 7.2.x, 7.3.x, and 7.4.x, which reached end-of-life November 2020, November 2021, and November 2022, respectively.

For those currently using one of the above-mentioned PHP runtimes, we encourage you to upgrade to PHP 8.1 or higher in order to keep receiving SDK updates.

Why are we doing it?

The PHP Group recently ended support for PHP 8.0.x, and the PHP community has been dropping support for PHP runtimes 8.0.x and below since they have reached end-of-life. There will be no further bug fixes or security updates in these runtimes. To ensure we are providing up-to-date and secure libraries, we are aligning with this migration. To ensure your applications and services remain secure, please upgrade to an actively supported PHP runtime, such as 8.1.x.

What is going to happen?

If you’re using AWS SDK for PHP and using PHP 8.0.x or below, the following message will be shown when you create an instance of any client:

<?php

/**
* test.php
*/

require 'vendor/autoload.php';

use Aws\S3\S3Client;

$s3Client = new S3Client([
    'region' => 'us-west-2',
]);
$ php --version
PHP 8.0.9 ...

$ php test.php
...
PHP Warning:  This installation of the SDK is using PHP version 8.0.9, which will be deprecated on January 13th, 2025.
Please upgrade your PHP version to a minimum of 8.1.x to continue receiving updates for the AWS SDK for PHP.
To disable this warning, set `suppress_php_deprecation_warning` to `true` in the client constructor or set the environment variable AWS_SUPPRESS_PHP_DEPRECATION_WARNING to `true`.
...

On January 13, 2025, the GitHub release for the AWS SDK for PHP will contain release notes stating the end of support for PHP runtimes 8.0.x and below. The exact SDK version will be included in the same release notes. If you are installing the SDK via Composer using PHP runtimes 8.0.x or below, Composer will install the latest SDK version compatible with your runtime.

Maintenance Policies

PHP

Please see the PHP support schedule for a complete list of PHP versions and their maintenance status.

AWS SDKs and Tools

For more information regarding maintenance and deprecation for AWS SDKs, please see the AWS SDKs and Tools Maintenance Policy. Our policy is to continue supporting SDK dependencies for at least 6 months after the community or vendor ends support for the dependency.

Feedback

Your feedback is greatly appreciated. You can engage with the AWS SDK for PHP team directly by opening a discussion or issue on our GitHub repository at aws/aws-sdk-php.

About the author:

Sean O'Brien

Sean O’Brien

Sean O’Brien is a Software Development Engineer on the PHP SDK team at AWS. He enjoys working on projects and tools that aim to improve the developer experience. You can find him on GitHub @stobrien89.