tobya/addlocalcomposerrepo 问题修复 & 功能扩展

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

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

tobya/addlocalcomposerrepo

Composer 安装命令:

composer require tobya/addlocalcomposerrepo

包简介

Create Repository section for local dev package

README 文档

README

When creating new PHP packages for use with composer it is much easier to develop if you can link code directly to a test project.

I always forgot exactly what the syntax was to add this section to my composer file so I decided to make a command to do it.

Installation

You can install the package via composer:

composer require tobya/addlocalcomposerrepo

Usage

Package installs 2 Commands

php artisan composer:addlocalrepo

php artisan composer:remove-local-repository

Both prompt for missing parameters

php artisan  composer:addlocalrepo

 Package Name eg. tobya/QueueStatus:
 > tobya/WebflowSiteConverter2

 Full Directory Path:
 > C:\Development\github\Webflow\WebflowSiteConverter

All done - Local Repo for tobya/WebflowSiteConverter2 has been created.
Don't forget to composer require your package
Composer require tobya/WebflowSiteConverter2

You may also need to change minimum stability on composer.json.

Or Just do this

Add this to your composer.json file

    "repositories": {
        "tobya/newpackage": {
            "type": "path",
            "url": "C:/Development/github/test/newpackageA",
            "options": {
                "symlink": true
            }
        }
    },

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固