PHPackages                             funkjedi/composer-include-files - 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. funkjedi/composer-include-files

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

funkjedi/composer-include-files
===============================

Include files at a higher priority than autoload files.

1.1.0(6y ago)1283.4M↓45.4%24[3 issues](https://github.com/funkjedi/composer-include-files/issues)[3 PRs](https://github.com/funkjedi/composer-include-files/pulls)18MITPHP

Since Dec 23Pushed 4y ago7 watchersCompare

[ Source](https://github.com/funkjedi/composer-include-files)[ Packagist](https://packagist.org/packages/funkjedi/composer-include-files)[ Docs](https://github.com/funkjedi/composer-include-files)[ RSS](/packages/funkjedi-composer-include-files/feed)WikiDiscussions master Synced yesterday

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

Composer - Include Files Plugin
===============================

[](#composer---include-files-plugin)

When using the Composer Autoloader if you need project files included prior to files autoloaded by any of your dependencies your out of luck. No longer!

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

[](#installation)

```
composer require funkjedi/composer-include-files
```

Usage
-----

[](#usage)

Just add the files you need included using `"include_files"` and they will be include prior to any files included by your dependencies.

```
// composer.json (project)
{
    "extra": {
        "include_files": [
            "/path/to/file/you/want/to/include",
            "/path/to/another/file/you/want/to/include"
        ]
    },
}
```

Specific Use Case
-----------------

[](#specific-use-case)

A good example of where this is required is when overriding helpers provided by Laravel.

In the past simply modifying `bootstrap/autoload.php` to include helpers was sufficient. However new versions of PHPUnit include the Composer Autoloader prior to executing the PHPUnit bootstrap file. Consequently this method of overriding helpers is no longer viable as it will trigger a fatal error when your bootstrap file is included.

But now we can use *Composer - Include Files Plugin* to have Composer include the files in the necessary order.

```
// composer.json (project)
{
    "require": {
        "laravel/framework": "^5.2",
        "funkjedi/composer-include-files": "^1.0",
    },
    "extra": {
        "include_files": [
            "app/helpers.php"
        ]
    },
}
```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity58

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~1280 days

Total

2

Last Release

2198d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/409ca1cc960f4126409e74afcf2daeef025b45c2c07eab05576adbf24de6db9c?d=identicon)[funkjedi](/maintainers/funkjedi)

---

Top Contributors

[![funkjedi](https://avatars.githubusercontent.com/u/9314?v=4)](https://github.com/funkjedi "funkjedi (8 commits)")[![amanto](https://avatars.githubusercontent.com/u/11464230?v=4)](https://github.com/amanto "amanto (1 commits)")[![iWader](https://avatars.githubusercontent.com/u/2007548?v=4)](https://github.com/iWader "iWader (1 commits)")[![lloy0076](https://avatars.githubusercontent.com/u/1174532?v=4)](https://github.com/lloy0076 "lloy0076 (1 commits)")

---

Tags

composerautoload

### Embed Badge

![Health badge](/badges/funkjedi-composer-include-files/health.svg)

```
[![Health](https://phpackages.com/badges/funkjedi-composer-include-files/health.svg)](https://phpackages.com/packages/funkjedi-composer-include-files)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.4M2.8k](/packages/ergebnis-composer-normalize)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M123](/packages/automattic-jetpack-autoloader)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1465.4M62](/packages/mnsami-composer-custom-directory-installer)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[dg/composer-cleaner

Victor The Cleaner: removes unnecessary files from vendor directory.

1411.6M33](/packages/dg-composer-cleaner)[typo3/class-alias-loader

Amends the composer class loader to support class aliases to provide backwards compatibility for packages

4414.6M28](/packages/typo3-class-alias-loader)

PHPackages © 2026

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