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

ActiveComposer-plugin

orbitali/composer-include-files
===============================

Include files at a higher priority than autoload files.

023PHP

Since Jan 18Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/67822c2cc2e42cb05544403b39b6295c461ae87e997f737ee970b25717528600?d=identicon)[Xicy](/maintainers/Xicy)

---

Top Contributors

[![Xicy](https://avatars.githubusercontent.com/u/8670548?v=4)](https://github.com/Xicy "Xicy (7 commits)")

### Embed Badge

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

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

PHPackages © 2026

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