pieceofcodero/symlink-composer-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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")

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固