Skip to content

[DevTools] Migrate from phpro/grumphp to phpro/grumphp-shim (#43)#44

Merged
coisa merged 5 commits intomainfrom
feature/grumphp-shim-migration-43
Apr 14, 2026
Merged

[DevTools] Migrate from phpro/grumphp to phpro/grumphp-shim (#43)#44
coisa merged 5 commits intomainfrom
feature/grumphp-shim-migration-43

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 14, 2026

Summary

Migrates from phpro/grumphp to phpro/grumphp-shim to eliminate dependency resolution conflicts in downstream projects. The shim is a no-dependency metapackage that provides the GrumPHP executable without forcing specific transitive dependency versions.

Changes

  • Replace phpro/grumphp with phpro/grumphp-shim in composer.json require section
  • Update allow-plugins configuration to reference the shim package
  • Keep existing GrumPHP configuration in grumphp.yml unchanged

Testing

  • composer install completes successfully with grumphp-shim
  • Pre-commit hook runs dev-tools validation as expected

Note: The additional enhancements for post-checkout and post-merge hooks (to synchronize vendor state when switching branches) are not included in this PR because GrumPHP v2.x native git hooks are limited to pre-commit and pre-push. This can be addressed separately with custom git hooks.

Closes #43

Replaces direct dependency with no-dependency metapackage to avoid
transitive dependency conflicts in downstream projects.

Closes #43
@github-actions github-actions bot added the enhancement New feature or request label Apr 14, 2026
coisa added 4 commits April 14, 2026 12:58
- Add composer, composer_normalize, jsonlint, yamllint, phplint tasks for pre-commit validation
- Add parallel execution support
- Create post-checkout and post-merge hooks for vendor synchronization

Closes #43
- Update post-checkout and post-merge hooks to check composer.lock
- Add copyGitHooks method to SyncCommand for vendor synchronization
- Simplify grumphp.yml config by removing unavailable tasks

Refs #43
fix(post-merge): update hook to run composer update for modified composer.json

Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
…ation

Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
@coisa coisa merged commit eb506bc into main Apr 14, 2026
8 checks passed
@coisa coisa deleted the feature/grumphp-shim-migration-43 branch April 14, 2026 18:53
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.

[DevTools] Migrate from phpro/grumphp to phpro/grumphp-shim and enhance git workflow integration (#issue_number)

1 participant