ILIAS
ILIAS copied to clipboard
Composer (Dev): Add `captainhook/captainhook` and `captainhook/plugin-composer` for ILIAS 12
This PR suggests adding captainhook/captainhook (v. 5.27) and captainhook/plugin-composer (v. 5.3) as composer dependencies.
General Information:
- [X] this dependency was already used in ILIAS.
- [X] License: MIT
Usage:
- Executed during multiple
ComposerandGitactions (depending on our shared and possible individual configuration files)
Wrapped By:
- Not applicable
Reasoning:
CaptainHookis an easy-to-use and very flexibleGit hooklibrary for PHP developers. It enables us to configure ourGit hookactions in a simple (and shared) JSON file.CaptainHookhelps us to enforce PHP code style and language file structure policies. Generally speaking, it allows the execution of any script for arbitrary actions, so developers can easily extend the shared configuration by e.g. executing unit tests before agit push, or checking commit messages against a configured ruleset.
Maintenance:
CaptainHookis well maintained (see: https://github.com/captainhookphp/captainhook/commits/main) and widely used in the PHP community.- The risk of relying on this library is small. It is a development dependency all mandatory code policies are enforced again by our GitHub CI pipeline on the Git remote server.
Links:
- Packagist: https://packagist.org/packages/captainhook/captainhook / https://packagist.org/packages/captainhook/plugin-composer
- GitHub: https://github.com/captainhookphp/captainhook / https://github.com/captainhookphp/plugin-composer
- Documentation: https://captainhookphp.github.io/captainhook/
Jour Fixe, 08 DEC 2025: Dependency is accepted for ILIAS 12.