pmforms
pmforms copied to clipboard
Add composer.json
For convenience of pulling from composer for phpstan
Is there a reason not to just handle this the same way as any other virion?
I'm not sure how any other virion is handled. Isn't phpstan + compose rthe standard way to setup this locally?
I don't know. Virions are your domain.
phpstan is not my domain though. Afaik it's not trivial to setup phpstan for projects that depend on other plugins or virions. Composer might be a good solution to this, but I don't know if that's what everyone is doing.
It's easy enough, just add the src directory to scanDirectories.
Yes, but you need to have cloned it locally first. This doesn't feel very standardized.
I thought there was a procedure for installing virions locally?
Not automatically. You would have to download them one by one on a CI environment. This is due to the unfortunate design choice that virions are declared in a Poggit-specific file.
I thought that's what DEVirion was for ... It seems to me like your purpose would be better served by improving the virion installation process instead of littering every virion repository with composer.json files.
I thought that's what DEVirion was for ... It seems to me like your purpose would be better served by improving the virion installation process instead of littering every virion repository with composer.json files.
Nope, devirion just loads virions from the virions folder.
I don't think composer.lock should be committed here
what's the general rule? no composer.lock for libraries?
Yes, it's not used for libraries anyway. It's only useful for the top-level project where composer install is run, to lock dependencies to a known state.
Obsoleted by #15