PHPackages                             tobya/addlocalcomposerrepo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tobya/addlocalcomposerrepo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tobya/addlocalcomposerrepo
==========================

Create Repository section for local dev package

01[2 PRs](https://github.com/tobya/AddLocalComposerRepo/pulls)PHPCI passing

Since Dec 30Pushed 1mo agoCompare

[ Source](https://github.com/tobya/AddLocalComposerRepo)[ Packagist](https://packagist.org/packages/tobya/addlocalcomposerrepo)[ RSS](/packages/tobya-addlocalcomposerrepo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Composer Utility: Create Repository section for local dev package
=================================================================

[](#composer-utility-create-repository-section-for-local-dev-package)

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
------------

[](#installation)

You can install the package via composer:

```
composer require tobya/addlocalcomposerrepo
```

Usage
-----

[](#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
---------------

[](#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
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Toby Allen](https://github.com/tobya)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance60

Regular maintenance activity

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a881e781ccf5267bc2c9153c0485a6b7b0fbfeaf212dcfcca6a4dd18885a48ee?d=identicon)[tobya](/maintainers/tobya)

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/tobya-addlocalcomposerrepo/health.svg)

```
[![Health](https://phpackages.com/badges/tobya-addlocalcomposerrepo/health.svg)](https://phpackages.com/packages/tobya-addlocalcomposerrepo)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
