labor-digital / composer-dev-symlink
Installs: 9 022
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 2
Type:composer-plugin
Requires
- php: >=7.2
- composer-plugin-api: ^1.0 || ^2.0
Requires (Dev)
- composer/composer: ^1.1@dev || ^2.0@dev
README
This plugin aims to assist when working on local composer packages without using a "path" repository, because that will break the composer.lock file. The goal was to simulate the basic behaviour of "npm link" to create symlinks and have the local packages in deployment in a single directory.
Installation
Simply install this plugin by using composer:
composer require labor-digital/composer-dev-symlink
If you want to install the plugin globally instead, feel free to do so by using:
composer global require labor-digital/composer-dev-symlink
Configuration
By default the plugin will look for packages to link in the directory: $CWD/vendor-dev/
. However, if that does not fit your needs you can always change the directory by setting it in your project's composer.json:
{ "extra": { "composer-dev-symlink": "./my-dev/*" } }
To keep in mind
- This plugin is installed globally in our php dev images
- There are plenty of other plugins that aim to do the same stuff, but did not work as globally installed plugin or broke the composer.lock file.
Postcardware
You're free to use this package, but if you use it regularly in your development environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany
We publish all received postcards on our company website.