PHPackages                             ibrostudio/composer-custom-directory-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. ibrostudio/composer-custom-directory-installer

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

ibrostudio/composer-custom-directory-installer
==============================================

v1.2.0(1y ago)012MITPHPPHP ^8.2

Since Apr 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iBroStudio/composer-custom-directory-installer)[ Packagist](https://packagist.org/packages/ibrostudio/composer-custom-directory-installer)[ Docs](https://github.com/iBroStudio/composer-custom-directory-installer)[ RSS](/packages/ibrostudio-composer-custom-directory-installer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

Composer Custom Directory Installer
===================================

[](#composer-custom-directory-installer)

This package is project based on [Laravel Module Installer](https://github.com/joshbrw/laravel-module-installer) extended to work with different types of packages. It allows installation of standalone packages into a custom directory instead of `vendor/`.

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

[](#installation)

In your **main project**, run

```
composer require ibrostudio/composer-custom-directory-installer
```

At the end of the composer installation, you will be asked to add the package in the "allow-plugins" section of your composer.json. **Confirmation is mandatory**

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

[](#configuration)

In the **composer.json of your package**, set these keys :

```
"type": "custom-library",
"extra": {
    "custom-directory-installer": {
      "directory": "DESTINATION_FOLDER"
    }
}
```

Replace *DESTINATION\_FOLDER* with the name of the directory, relative to the root of your main project where you want to install the package.

**Example:**

```
"type": "custom-library",
"extra": {
    "custom-directory-installer": {
      "directory": "themes"
    }
}
```

Usage
-----

[](#usage)

Simply require your composer package as usual:

```
composer require vendor_name/package_name
```

Your package will be installed in a subfolder called package\_name in the directory defined in the extra section.

Options
-------

[](#options)

Your package name can have sometimes a prefix or a suffix, like:

- vendor\_name/theme-package\_name
- vendor\_name/package\_name-theme
- vendor\_name/platform-package\_name-theme

For convenience and lisibility, you can specify the prefix and/or suffix in the extra configuration to exclude them from the folder name:

**prefix**

```
"name": "vendor_name/theme-my_project",
"extra": {
    "custom-directory-installer": {
      "directory": "themes",
      "prefix": "theme-"
    }
}
```

**suffix**

```
"name": "vendor_name/my_project-theme",
"extra": {
    "custom-directory-installer": {
      "directory": "themes",
      "suffix": "-theme"
    }
}
```

**both**

```
"name": "vendor_name/platform-my_project-theme",
"extra": {
    "custom-directory-installer": {
      "directory": "themes",
      "prefix": "platform-",
      "suffix": "-theme"
    }
}
```

In these 3 examples, the package will be installed in /themes/my\_project.

**TIP:** *laravel-* and *filament-* are in-built prefixes, you don't have to include them.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~146 days

Total

4

Last Release

689d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a456dae716df4be38cb7d5f02ca522a02ec37eda586ab0cae0f504516b7c1ef?d=identicon)[iBroStudio](/maintainers/iBroStudio)

---

Top Contributors

[![Yann-iBroStudio](https://avatars.githubusercontent.com/u/2676572?v=4)](https://github.com/Yann-iBroStudio "Yann-iBroStudio (5 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ibrostudio-composer-custom-directory-installer/health.svg)

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

###  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.3M14](/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.9M441](/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)
