Download the PHP package takeshiyu/composer-linker without Composer
On this page you can find all versions of the php package takeshiyu/composer-linker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download takeshiyu/composer-linker
More information about takeshiyu/composer-linker
Files in takeshiyu/composer-linker
Package composer-linker
Short Description A Composer plugin for linking local packages during development, similar to `npm link`.
License MIT
Informations about the package composer-linker
Composer Linker
A Composer plugin for linking local packages during development, similar to npm link.
Key Features
- No project files - All link information is stored in the global Composer directory
- Simple workflow - Register once, link anywhere
- Clean development - No modifications to your composer.json
- Automatic backups - Original packages are preserved and can be restored
Requirements
- Composer 2.0+
- PHP 8.2+
- Filesystem that supports symbolic links
Installation
Usage
Register a local package
First, register your local package globally:
This makes the package available for linking in any project.
Link a package to your project
In your project directory, link to a registered package:
This creates a symbolic link in your vendor directory pointing to the local package source.
List linked packages
Show all packages linked in your current project:
Show all globally registered packages:
Show all projects and their linked packages:
Unlink a package
Restore a package to the installed version:
How it works
This plugin:
- Stores all link information in a central links.json file in ~/.composer/links/
- Uses symbolic links to connect your project to local packages
- Preserves your composer.json file (no modifications needed)
- Works at the filesystem level, similar to npm link
- Never creates any files in your project directory
Benefits
- No files in your project directory that could be committed to version control
- Consistent workflow across projects
- Easy to switch between development and production versions
- Works with Composer's autoloading system
License
Composer Linker package is open-sourced software licensed under the MIT license