Skip to content

PHP 8.5 support in a stable release #4345

@AJenbo

Description

@AJenbo

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1.37

What version of Laravel are you using?

12.50.0

What version of PHP are you using?

8.5

Describe your issue

PHP 8.5 was released in November 2025. Laravel-Excel v3.1 depends on phpoffice/phpspreadsheet ^1.30, which resolves to 1.30.2. This version explicitly raises an error on PHP 8.5 to steer users toward the 2.x/3.x branches that have proper 8.5 support. While it's possible to pin phpspreadsheet to 1.30.0 to work around this, that version was written before PHP 8.5 existed and simply didn't check, it wasn't tested or validated against 8.5. Relying on that feels fragile, and any future 1.30.x patch could reintroduce the block.

The 4.x branch already depends on a phpspreadsheet version with proper PHP 8.5 support, and the deprecation fix in #4334 was merged over a month ago. However, without a stable release, adopting it is difficult in practice.

Many organizations have policies that prevent running dev/unreleased packages in production. These versions aren't tracked in vulnerability databases, can't be audited in the same way, and don't provide the stability guarantees that compliance and security reviews require. This isn't about preference, it's a real blocker for teams that would otherwise be ready to upgrade.

How can the issue be reproduced?

Set up a project with PHP 8.5 and Laravel 12.
2. Run composer require maatwebsite/excel — no stable version provides validated PHP 8.5 support.
3. v3.1 resolves to phpoffice/phpspreadsheet 1.30.2, which explicitly blocks PHP 8.5.
4. Pinning to 1.30.0 avoids the block but relies on a version that was never tested against PHP 8.5.
5. The 4.x-dev branch works but cannot be used in environments that require stable releases.

What should be the expected behaviour?

There should be a stable release of Laravel-Excel that provides validated PHP 8.5 support, whether that's through a 4.0 release, a 3.1.x patch with a compatible phpspreadsheet constraint, or another approach. PHP 8.5 has been out for over three months, and it would be great to have an officially supported path.

If there are remaining issues or tasks blocking this, I'd be grateful for visibility into what's needed. I'm happy to contribute developer time to help get it over the line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions