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 1mo ago

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 68% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

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

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

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

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