定制 tobya/addlocalcomposerrepo 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱: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
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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