PHPackages                             ollieread/composer-local-repositories - 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. ollieread/composer-local-repositories

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

ollieread/composer-local-repositories
=====================================

Composer plugin that automatically loads local package repositories

v1.0(1y ago)1532↓100%2MITPHPPHP ^8.1

Since Nov 25Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ollieread/composer-local-repositories)[ Packagist](https://packagist.org/packages/ollieread/composer-local-repositories)[ RSS](/packages/ollieread-composer-local-repositories/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Composer Local Repositories
===========================

[](#composer-local-repositories)

The composer plugin to quickly add local repositories for development purposes, without the need to update your `composer.json` file.

How to install
--------------

[](#how-to-install)

```
composer global require ollieread/composer-local-repositories
```

How to use
----------

[](#how-to-use)

Add a `repositories.json` file to any project that you want to add a custom repository to. The file needs to contain a valid composer `repositories` key. For example:

**`repositories.json`**

```
{
  "repositories": [
    {
      "type": "path",
      "url": "../local-folder"
    }
  ]
}
```

During a `composer install` or `composer update`, the plugin will locate the `repositories.json` file; and prepend all the configured repositories. If composer finds any of the `require` packages inside these repositories, it will install the package from that repository instead.

Configuration
-------------

[](#configuration)

To configure the plugin, you can provide extra configuration keys under a `local-repositories` key in the `extra`section.

- `trigger-commands` An array of composer commands that loads the local `repositories.json` file (default: `install`and `update`)
- `ignore-flags` An array of flags on which to ignore the local `repositories.json` file (default: `--no-dev`and `--prefer-source`)
- `force-dev` Whether to update the constraint of any found packages from local repositories with `@dev` ( default: `true`)

Full configuration example with default values:

**global `composer.json`**

```
{
  "extra": {
    "local-repositories": {
      "trigger-commands": [
        "install",
        "update"
      ],
      "ignore-flags": [
        "no-dev",
        "prefer-source"
      ],
      "force-dev": true
    }
  }
}
```

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance42

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/662649a96637829fc96fda162ef14e9f656b09ea8d696f37156e0da01cd5fa43?d=identicon)[ollieread](/maintainers/ollieread)

---

Top Contributors

[![doekenorg](https://avatars.githubusercontent.com/u/529515?v=4)](https://github.com/doekenorg "doekenorg (2 commits)")[![ollieread](https://avatars.githubusercontent.com/u/469515?v=4)](https://github.com/ollieread "ollieread (2 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (1 commits)")

---

Tags

composercomposer-pluginlocal-developmentphpphp-package-development

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ollieread-composer-local-repositories/health.svg)

```
[![Health](https://phpackages.com/badges/ollieread-composer-local-repositories/health.svg)](https://phpackages.com/packages/ollieread-composer-local-repositories)
```

###  Alternatives

[symfony/flex

Composer plugin for Symfony

4.2k178.8M783](/packages/symfony-flex)[composer/package-versions-deprecated

Composer plugin that provides efficient querying for installed package versions (no runtime IO)

1.5k188.8M197](/packages/composer-package-versions-deprecated)[cweagans/composer-patches

Provides a way to patch Composer packages.

1.7k92.0M662](/packages/cweagans-composer-patches)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k36.0M1.8k](/packages/ergebnis-composer-normalize)[wikimedia/composer-merge-plugin

Composer plugin to merge multiple composer.json files

99624.3M214](/packages/wikimedia-composer-merge-plugin)[phpstan/extension-installer

Composer plugin for automatic installation of PHPStan extensions

49594.7M6.9k](/packages/phpstan-extension-installer)

PHPackages © 2026

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