ComposerRequireChecker
ComposerRequireChecker copied to clipboard
Distribute as scoped PHAR in a package by default
To avoid issues with dependencies, it's a very good idea to distribute the tool as a scoped PHAR in a Composer package. It's a best practice adopted by Psalm, PhpStan etc.
As far as I can see, building PHAR is already automated, so the only thing left seems to make a composer package w/o dependencies that installs it.
References
- https://t.me/samdark_blog/224
- https://github.com/humbug/php-scoper
- https://github.com/phpstan/phpstan-src/blob/2.1.x/.github/workflows/phar.yml
- https://github.com/psalm/phar
- https://github.com/composer/composer/issues/9636