tobya/addlocalcomposerrepo

Create Repository section for local dev package

Fund package maintenance!
tobya

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

pkg:composer/tobya/addlocalcomposerrepo

dev-main 2025-12-30 22:00 UTC

This package is auto-updated.

Last update: 2025-12-30 22:05:04 UTC


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

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.