aws / aws-sdk-php-laravel

A Laravel 5+ (and 4) service provider for the AWS SDK for PHP
http://aws.amazon.com/sdkforphp/
Apache License 2.0
1.64k stars 242 forks source link

Support laravel 11 #243

Closed ArtemXML closed 3 months ago

ArtemXML commented 4 months ago

Describe the bug

This package doesn't support the new Laravel 11 version

It requires illuminate support, but this package was replaced by Laravel 11 and can't coexist.

Here is my stack trace

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

Problem 1

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 aws/aws-sdk-php-laravel:*" to figure out if any version is installable, or "composer require aws/aws-sdk-php-laravel:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

And also my compose dependencies. "require": { "php": "^8.2", "barryvdh/laravel-dompdf": "^2.0", "guzzlehttp/guzzle": "^7.2", "intervention/image": "^2.7", "laravel/framework": "^11.0", "laravel/horizon": "^5.23", "laravel/prompts": "^0.1.8", "laravel/sanctum": "^4.0", "laravel/telescope": "^5.0", "laravel/tinker": "^2.8", "minishlink/web-push": "^8.0", "phpoffice/phpspreadsheet": "^1.29", "propaganistas/laravel-phone": "^5.0" },.

Expected Behavior

Install this version with Laravel 11 as described in Readme

Current Behavior

composer require return errors

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

Problem 1

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 aws/aws-sdk-php-laravel:*" to figure out if any version is installable, or "composer require aws/aws-sdk-php-laravel:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Reproduction Steps

try to add this package to the project with Laravel 11

php composer require aws/aws-sdk-php-laravel

Possible Solution

No response

Additional Information/Context

No response

SDK version used

3.8.1

Environment details (OS name and version, etc.)

Docker image based on ubuntu:22.04

stobrien89 commented 4 months ago

Hi @ArtemXML,

I'm waiting for approvals on #242 before we cut a new release with support for 11— It's currently in our codebase. Should be able to get this out on Monday.

stobrien89 commented 3 months ago

Hi @ArtemXML,

Closing this, as 3.9.0 is live. Let us know if you have any additional questions.

github-actions[bot] commented 3 months ago

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.