phpcq/branch-alias-validation
main or develop.release/1.2.x → v1.2.0) using Git hooks or Laravel events.packages/*) or during git flow-like workflows.v1.0.0, v2.3.4) and relies on branch aliases (e.g., feature/, release/, hotfix/) for workflow organization.main or develop, rather than relying on post-release checks.For Executives:
"This package adds a lightweight but critical layer of quality control to our release process. By ensuring every branch is ahead of the latest tag, we eliminate the risk of merging ‘stale’ code into main or develop, which could lead to version conflicts or deployment failures. For example, if a release/2.0 branch hasn’t advanced past v1.5.0 while main is at v2.1.0, this tool will block the merge—saving hours of debugging and potential downtime. The setup is minimal (a single Composer package and a CI step), with zero operational overhead, and it aligns perfectly with our SemVer and Git flow practices."
For Engineering (Tech Leads/Architects):
*"We’re proposing to add phpcq/branch-alias-validation to our toolchain to:
feature/payment stuck at v1.2.0 while main is at v1.3.0)../vendor/bin/validate-branch-alias.php as a required step in GitHub Actions/GitLab CI for feature/* and release/* branches.For Developers:
*"This tool acts as a Git branch gatekeeper. Before you merge feature/x into develop, it checks:
v1.2.0)?feature/x is behind v1.2.0—update or create a new tag.’
How to use:composer.json under require-dev../vendor/bin/validate-branch-alias.php locally or in CI.
Why now? It’s the missing link between ‘code complete’ and ‘release ready,’ ensuring we don’t accidentally merge branches that could break our versioning or deployment pipelines. Think of it as spellcheck for Git workflows."*For DevOps/SRE: *"This package addresses a common pain point in Git workflows: branch drift. By validating that all branches are ahead of the latest tag, we:
main or develop.pre-push) for local enforcement.
No changes to infrastructure required—just a Composer package and a CI step."*How can I help you explore Laravel packages today?