Replies: 1 comment 5 replies
-
I think it depends on how you want to distribute your scoped asset: if it is as a PHAR only it can be part of the main project (like it is done with PHP-Scoper or Box). If you want to distribute a scoped Composer package, then you need a separate repository with the scoped code, like PHPStan does for instance. In that case you'll need a bit more work to configure the CI to push code to that scoped mirror-ish repository |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am making a WordPress plugin called ThumbHash Placeholders.
I used
php-scoper
to create a scoped release asset. This means I have a version of the plugin that is less likely to cause conflicts with other plugins. I plan to use this for the WP.org plugin directory.Installing via Composer
Another way to install WordPress plugins is through Composer and Packagist. A popular project for this is Roots/Bedrock.
composer require hirasso/thumbhash-placeholders
, they will not get the scoped version.main
branch.If users get the unscoped version, it could lead to conflicts with other plugins or packages.
My Main Question
What is the best way to scope a package when releasing it to Packagist?
main
branch.composer.json
file might still cause conflicts with other packages.I hope this makes sense! I think many others have similar questions.
Beta Was this translation helpful? Give feedback.
All reactions