PHPackages                             folivoro/composer-dropin-installer - 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. folivoro/composer-dropin-installer

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

folivoro/composer-dropin-installer
==================================

Copies a single file from a package into a target directory defined by installer-paths.

v0.0.3(1mo ago)0212MITPHPPHP ^8.4

Since May 18Pushed 1mo agoCompare

[ Source](https://github.com/folivoro/dropin-installer-plugin)[ Packagist](https://packagist.org/packages/folivoro/composer-dropin-installer)[ RSS](/packages/folivoro-composer-dropin-installer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (4)Used By (2)

[![Sloth Logo](https://raw.githubusercontent.com/folivoro/art/refs/heads/main/sloth-logo.svg)](https://folivoro.com)

[![Total Downloads](https://camo.githubusercontent.com/960722eb75c253191ed94911c262037bfad98228cbdde4f758a074be7df730f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f6c69766f726f2f736c6f7468)](https://packagist.org/packages/folivoro/sloth)[![Latest Stable Version](https://camo.githubusercontent.com/8db3aba0f5583840b5b0dd9b6cfb7e0c8ca0c67b05188c7f23ca3b963dcbc202/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f6c69766f726f2f736c6f7468)](https://packagist.org/packages/folivoro/sloth)[![License](https://camo.githubusercontent.com/dbb1400579b1ca32ec54fb4e3f3a3d7121e8baaef0c86e21411c28da5926d008/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666f6c69766f726f2f736c6f7468)](https://packagist.org/packages/folivoro/sloth)[![CI](https://github.com/folivoro/sloth/actions/workflows/ci.yml/badge.svg)](https://github.com/folivoro/sloth/actions/workflows/ci.yml)

Folivoro Composer-Dropin-Installer
==================================

[](#folivoro-composer-dropin-installer)

A Composer plugin that copies files from any installed package into a target directory — either resolved from the root package's `installer-paths` configuration, or a direct path relative to the project root.

Why
---

[](#why)

Some packages need to place a file at a specific location in the project — for example, a WordPress MU-plugin bootstrapper or a shared config file. The standard `composer/installers` approach installs an entire package directory. This plugin does one thing: copies declared files to the right place.

Installation
------------

[](#installation)

```
composer require folivoro/composer-dropin-installer
```

Usage
-----

[](#usage)

In any package that wants to install dropin files, add to `composer.json`:

### Single file (via `installer-paths`)

[](#single-file-via-installer-paths)

```
{
    "extra": {
        "dropin": {
            "file": "my-plugin.php",
            "target-type": "wordpress-muplugin",
            "target-dir": "my-plugin"
        }
    }
}
```

### Single file (via direct path)

[](#single-file-via-direct-path)

```
{
    "extra": {
        "dropin": {
            "file": "pint.json",
            "target-path": "."
        }
    }
}
```

### Multiple files

[](#multiple-files)

```
{
    "extra": {
        "dropins": [
            { "file": "pint.json", "target-path": "." },
            { "file": "phpstan.neon", "target-path": "." },
            { "file": "rector.php", "target-path": "." }
        ]
    }
}
```

The root project must have `installer-paths` configured when using `target-type`:

```
{
    "extra": {
        "installer-paths": {
            "public/extensions/components/{$name}/": [
                "type:wordpress-muplugin"
            ]
        }
    }
}
```

Given the above, `my-plugin.php` will be copied to:

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance88

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

59d ago

### Community

Maintainers

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

---

Top Contributors

[![sixmonkey](https://avatars.githubusercontent.com/u/15140258?v=4)](https://github.com/sixmonkey "sixmonkey (5 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/folivoro-composer-dropin-installer/health.svg)

```
[![Health](https://phpackages.com/badges/folivoro-composer-dropin-installer/health.svg)](https://phpackages.com/packages/folivoro-composer-dropin-installer)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74298.8M1.1k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5345.4M570](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M205](/packages/drupal-core-project-message)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M342](/packages/phpro-grumphp-shim)[lullabot/drainpipe

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

43785.5k4](/packages/lullabot-drainpipe)

PHPackages © 2026

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