opb / dev-symlinks
Package to change symlink to true or false depending on env
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/opb/dev-symlinks
Requires
- composer-plugin-api: ^2.0
- composer/composer: ^2.0
README
Add the following to the extras section of your project's composer.json:
"extra": { "dev-symlink-envs": [ "dev", "development" ] }
The extras section itself is included for clarity.
This will go through any configured repositories in your composer.json of type path and if the current environment, as defined by the APP_ENV environment variable, is in the list defined, then the composer config will be change to "symlink": true.
For example:
{
"repositories": [
{
"type": "path",
"url": "../path/to/local/package",
"options": {
"symlink": false
}
}
],
"require": {
"vendor/package": "*"
},
"extra": {
"dev-symlink-envs": [
"dev",
"development"
]
}
}
In this case, whenever APP_ENV is either dev or development then the symlink option for the local package will be set to true.