Require PHP 8.4 + Laravel 12, add AGENTS.md and real README#13
Merged
Conversation
Document the package for both AI coding agents (AGENTS.md) and human consumers (README.md): the gateway-agnostic payments abstraction, core contracts, models, traits, payment flow, configuration and testing. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
actions/cache@v2 was disabled by GitHub, failing the build. Bump checkout and cache to v4, pin PHP to 8.1 via setup-php, and drop the removed Composer --no-suggest flag. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Bump the minimum PHP to >=8.4 and modernize the dependency tree so CI runs on a supported stack: - illuminate/support ^12.0, puntodev/mercadopago ^6.0 - dev: orchestra/testbench ^10.0, phpunit ^11.0, collision ^8.0 - regenerate composer.lock Code/test changes required by the upgrade: - Models: replace removed $dates property with 'paid_on' => 'datetime' cast - Factories: add : array return type to definition() - Tests: make data providers static, migrate @test/@dataProvider annotations to PHPUnit attributes, drop a stray in-body @test comment - phpunit.xml.dist: migrate to the PHPUnit 11 schema (source/coverage), drop the removed Collision printerClass - CI: pin setup-php to 8.4 - Docs: update AGENTS.md/README requirements Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Mirror the bookables setup: - Rewrite CHANGELOG.md in Keep a Changelog format with an Unreleased section and a note about the automation. - Add .github/release.yml to group generated release notes by PR label. - Add .github/workflows/update-changelog.yml: on a published release, write its notes into CHANGELOG.md and commit back to master. Requires a RELEASE_TOKEN secret (admin PAT) and enforce_admins disabled on master so the changelog commit can be pushed to the protected branch. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Bump phpunit/phpunit from ^11.0 to ^12.0 (resolves to 12.5). Test suite passes unchanged on PHP 8.4. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Match the bookables CI: run the suite on a PHP 8.4/8.5 matrix (fail-fast off), name each job "PHP <version>" so the checks can be required by branch protection, bump checkout to v5, install the common extensions and enable pcov coverage. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
actions/cache@v2).AGENTS.mdwith guidance for AI coding agents.README.md(was the Laravel Package Boilerplate template) with real content.Dependency bump
php^8.0→>=8.4illuminate/support^8.0→^12.0puntodev/mercadopago^2.0→^6.0(v6 itself requires PHP>=8.4and Laravel 12)orchestra/testbench^10.0,phpunit^11.0,nunomaduro/collision^8.0composer.lockregeneratedCode/test changes required by the upgrade
$datesproperty with a'paid_on' => 'datetime'cast onOrder/Payment.: arrayreturn type todefinition().static, migrated@test/@dataProviderdoc annotations to PHPUnit attributes, removed a stray in-body@testcomment.<source>/<coverage>), dropped the removed CollisionprinterClass.CI
actions/checkout@v2→@v4,actions/cache@v2→@v4shivammathur/setup-php@v2(8.4)--no-suggestflagVerification
vendor/bin/phpunitlocally on PHP 8.4.22: 37 tests, 89 assertions, OK, no deprecations. CI green.🤖 Generated with Claude Code