承接 pieceofcodero/symlink-composer-plugin 相关项目开发

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

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

pieceofcodero/symlink-composer-plugin

最新稳定版本:v0.2

Composer 安装命令:

composer require pieceofcodero/symlink-composer-plugin

包简介

Composer plugin for creating symlinks to packages in custom directories. Supports type-based, vendor-based, and name-based matching with configurable paths.

README 文档

README

A Composer plugin that creates symlinks for specific packages according to defined criteria.

Installation

composer require pieceofcodero/symlink-composer-plugin

Configuration

Add a symlink-paths section to the extra section of your composer.json:

{
    "extra": {
        "symlink-paths": {
            "public/components/{$name}": ["vendor:some-vendor", "type:component"],
            "public/js/{$name}": "vendor:js-vendor"
        }
    }
}

Usage

The plugin automatically creates symlinks when packages are installed or updated.

Recreating all symlinks

If you need to recreate all symlinks (for example, after changing the configuration), use the dedicated command:

composer symlink-recreate-all

This command will recreate all symlinks according to your configuration.

Path Placeholders

The following placeholders are available for target paths:

  • {$name}: Package name without vendor (e.g., "package" from "vendor/package")
  • {$vendor}: Vendor name (e.g., "vendor" from "vendor/package")
  • {$package}: Full package name (e.g., "vendor/package")

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-30