Download the PHP package sandersander/composer-link without Composer
On this page you can find all versions of the php package sandersander/composer-link. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sandersander/composer-link
More information about sandersander/composer-link
Files in sandersander/composer-link
Package composer-link
Short Description Adds ability to link local packages for development with composer
License MIT
Informations about the package composer-link
composer-link
Adds ability to link local packages in composer for development.
This plugin won't alter your composer.json
or composer.lock
file,
while maintaining the composer abilities to manage/upgrade your packages.
Requirements
- PHP >= 8.1
- Composer >= 2.6
Installation
This plugin can be installed globally or per project
Globally
Per project:
Usage
The following three commands are made available by this plugin link
, unlink
and linked
.
When the plugin is installed globally you can prefix the commands with global
as example composer global linked
and install global packages.
To link a package you can use the link
commands, you can also link a global package.
When linked to a global package absolute paths are used, when using a relative path composer-link resolves
it to the absolute path.
It's also possible to use a wildcard in your path, note that this will install all packages found in the directory ../packages
If you don't want to link all the packages but only the ones originally installed you can pass the --only-installed
flag.
Composer link will automatically install/update the required packages from the linked package,
you can prevent this behavior by adding the --without-dependencies
flag.
When the composer link
or composer unlink
are used all packages defined in require-dev
of the root package are
installed by default, this can be prevented by using the --no-dev
flag
To unlink the package you can use the unlink
command
You can also unlink all package with the following command
To see all linked packages in your project you can use the linked
command
Development
The following tools are available for development. It's also possible to link this package to your global for testing changes.
All versions of composer-link with dependencies
ext-json Version *
composer-plugin-api Version ^2.6