ComposerRequireChecker icon indicating copy to clipboard operation
ComposerRequireChecker copied to clipboard

Distribute as scoped PHAR in a package by default

Open samdark opened this issue 10 months ago • 0 comments

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

samdark avatar Jan 29 '25 20:01 samdark