Why Nostr? What is Njump?
2025-04-30 05:04:28

will talk for elePHPants! on Nostr: Hey #PHP friends. My websearch-foo is failing me and perhaps someone knows an answer: ...

Hey #PHP friends. My websearch-foo is failing me and perhaps someone knows an answer:

With composer it is right now possible to only install a package when a certain extension is available by setting

{
require: {
ext-foo: "*"
}
}

Is there a way to do the opposite? Install a package only when a certain extension is **not** available?

I was so far not able to find anything in that direction...

Background are polyfills that should **only** be installed when an extension is missing...
Author Public Key
npub133fvz6h8acd44yyyc5k06jlelrrxwfjevmck3ctke6jr8q2vjk5s8jq0km