timonkreis / composer-package-paths
Composer plugin to configure paths for composer package types.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: >=7.2.0
- composer-plugin-api: ^1.1
- composer/installers: ^1.0
This package is auto-updated.
Last update: 2025-03-08 18:10:49 UTC
README
Composer plugin to configure paths for composer package types.
To set package paths, add configuration of package types and paths to your composer.json:
... "extra": { "package-paths": { "[package-type]": "custom/path/{$vendor}/{$name}" } } ...
The [package-type]
has to match the type of the composer package.
Alternatively, you can add paths for vendor namespaces or even single packages:
... "extra": { "package-paths": { "my-vendor/*": "vendor/path/{$vendor}/{$name}", "my-vendor/my-package": "vendor/path/{$vendor}/{$name}" } } ...
The priority is as follows:
- Check if the package is referenced directly by package name (
[vendor]/[name]
). - Check if the package namespace is referenced (
[vendor]/*
). - Check if the package type is referenced (
[package-type]
).
Possible variables
Variable: | Description: |
---|---|
{$vendor} |
Vendor name of the package. |
{$name} |
Package name (after vendor name). |