Skip to content

feat: add support for Laravel 13, Livewire 4, and PHP 8.5#9

Merged
epessine merged 6 commits into
masterfrom
feat/laravel-13-livewire-4-php-85
Jun 5, 2026
Merged

feat: add support for Laravel 13, Livewire 4, and PHP 8.5#9
epessine merged 6 commits into
masterfrom
feat/laravel-13-livewire-4-php-85

Conversation

@epessine

Copy link
Copy Markdown
Owner

Adds additive compatibility for Laravel 13, Livewire 4, and PHP 8.5 while keeping full backward compatibility with Laravel 10–12, Livewire 3, and PHP 8.2–8.4.

Changes

Laravel 13

  • Updated laravel/framework constraint to ^10.0|^11.0|^12.0|^13.0
  • Updated orchestra/testbench to ^8.0|^9.0|^10.0|^11.0

Livewire 4

  • Updated livewire/livewire constraint to ^3.0|^4.0
  • Updated pestphp/pest-plugin-livewire constraint to ^2.1|^4.0
  • Fixed runtime incompatibility: Livewire 4 treats :: in component names as a namespace separator. Renamed the axis::renderer component alias to axis-renderer in AxisServiceProvider and RendersAsChart.

PHP 8.5

  • Extended php constraint from ^8.2|^8.3|^8.4 to ^8.2|^8.3|^8.4|^8.5
  • Added 8.5 to the CI test matrix
  • Updated formats workflow to run on PHP 8.5
  • Updated README compatibility section

Pest

  • Updated pestphp/pest constraint to ^2.34|^3.5|^4.3

Style fixes (Pint)

  • Added declare(strict_types=1) to RendersAsFile, tests/Helpers.php, and tests/Pest.php
  • Replaced FQCNs with imported class names to satisfy fully_qualified_strict_types rule
  • Added (string) cast on str() return in RendersAsFile to satisfy the declared : string return type

@epessine
epessine requested a review from Copilot May 11, 2026 22:40
@epessine epessine self-assigned this May 11, 2026
@epessine epessine added the enhancement New feature or request label May 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds compatibility updates so the package can be installed and tested against newer platform versions (Laravel 13, Livewire 4, PHP 8.5), while keeping support for older supported versions.

Changes:

  • Expanded Composer version constraints for PHP, Laravel, Livewire, and Pest-related dev dependencies.
  • Renamed the Livewire component alias from axis::renderer to axis-renderer and updated mounting to use the alias.
  • Updated CI workflows (test matrix + formatting/typecheck workflow) and refreshed README compatibility docs.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
composer.json Broadens runtime + dev dependency constraints for Laravel/Livewire/PHP/Pest.
src/AxisServiceProvider.php Registers Livewire component under the new alias axis-renderer.
src/Traits/RendersAsChart.php Mounts the Livewire renderer using the new alias.
src/Traits/RendersAsFile.php Adds strict types and ensures the render-function helper returns a real string.
tests/Pest.php Adds strict types and imports TestCase for Pint compliance.
tests/Helpers.php Adds strict types and removes FQCN usage for Closure.
.github/workflows/tests.yml Expands the PHP test matrix to include 8.4 and 8.5.
.github/workflows/formats.yml Switches formatting/typecheck job to PHP 8.5.
README.md Documents updated compatibility targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread composer.json
Comment thread .github/workflows/formats.yml Outdated
Comment thread src/AxisServiceProvider.php
Comment thread src/Traits/RendersAsChart.php
@epessine
epessine merged commit 804d960 into master Jun 5, 2026
64 checks passed
@epessine
epessine deleted the feat/laravel-13-livewire-4-php-85 branch June 5, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants