roave/backward-compatibility-check
Checks your PHP library for backward compatibility breaks between git tags/versions. Designed for CI: compares the last SemVer tag to current HEAD, reports API breaks, and exits non-zero on failure. Install via Composer or run in Docker.
--format=markdown or --format=github-actions).Adopt if:
1.2.0 → 1.3.0).Look Elsewhere if:
v1.2.3).For Executives: "This tool automates backward compatibility checks in our PHP/Laravel codebase, ensuring minor releases don’t break existing integrations—saving time and reducing risk. By integrating it into CI, we’ll catch API regressions early, just like we do for unit tests. It’s a lightweight, open-source solution used by teams at Roave, with negligible overhead. For a one-time setup, it pays dividends in stability and developer confidence."
For Engineering: *"Roave’s BC Check is a zero-configuration way to enforce SemVer in PHP. It:
.roave-backward-compatibility-check.xml (e.g., for deprecations).composer.json as a dev dependency, run in CI, and let it block bad merges. 5 minutes to set up, infinite ROI in stability."*For QA/DevOps: *"This replaces manual BC audits with automated, reproducible checks. Key benefits:
protected → private in final classes is not a BC break).--format=github-actions.User::legacyMethod()’).
Ask PMs to prioritize this for any project shipping minor releases to external consumers."How can I help you explore Laravel packages today?