承接 shipfastlabs/link 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shipfastlabs/link

最新稳定版本:v1.0.3

Composer 安装命令:

composer require shipfastlabs/link

包简介

Link local packages for development by modifying composer.json and composer.lock

README 文档

README

Link

Link

Link local packages for development by modifying composer.json and composer.lock.

Requires PHP 8.2+ and Composer 2.6+

Installation

Install globally so it's available in all your projects:

composer global require shipfastlabs/link

Or install per-project:

composer require shipfastlabs/link --dev

Usage

Link a local package

composer link ../packages/my-package

This will:

  • Add a path repository entry to your composer.json
  • Update the require constraint to * so Composer resolves from the local path
  • Run composer update to update composer.lock and symlink the package

Link multiple packages with wildcards

composer link ../packages/*

Only link packages that are already in your composer.lock:

composer link ../packages/* --only-installed

List linked packages

composer linked

Unlink a package

composer unlink ../packages/my-package

This restores the original version constraint in composer.json and runs composer update to install the released version from Packagist.

Unlink all packages

composer unlink-all

How it works

Unlike composer-link which works in-memory, this plugin modifies your composer.json and composer.lock files directly:

  1. composer link adds a path repository to composer.json and runs composer update
  2. composer unlink removes the path repository, restores the original constraint, and runs composer update
  3. Original version constraints are tracked in vendor/composer-link.json so they can be restored on unlink
  4. Both require and require-dev packages are supported

Development

composer lint        # Format code with Pint
composer refactor    # Run Rector refactors
composer test:types  # Static analysis with PHPStan
composer test:unit   # Unit tests with Pest
composer test        # Run the entire test suite

License

Link is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固