PHPackages                             evert/phpincludes - 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. evert/phpincludes

ActiveLibrary

evert/phpincludes
=================

PHPIncludes traverses your source and automatically creates an 'includes' file.

0.2.0(12y ago)723BSD-3-ClausePHPPHP &gt;=5.2

Since Oct 31Pushed 12y ago2 watchersCompare

[ Source](https://github.com/evert/PHPIncludes)[ Packagist](https://packagist.org/packages/evert/phpincludes)[ Docs](https://github.com/evert/PHPIncludes)[ RSS](/packages/evert-phpincludes/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHP includes
============

[](#php-includes)

This is a simple script that traverses your sourcecode and attempts and create an 'includes' file.

Using an includes file instead of for example autoload can have significant performance benefits.

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

[](#installation)

```
{
    "require" : {
        "evert/phpincludes" : "~0.2"
    }
}
```

This will install the package into `vendor/evert/phpincludes`, and symlink the executable in `vendor/bin`. I tend to do something like this:

```
{
    "require" : {
        "evert/phpincludes" : "~0.2"
    },
    "config" : {
        "bin-dir" : "bin"
    }
}
```

So all my project's bin files are in a local bin/ directory. On my own system I also have a `~/bin/` directory (in my home) and install various php utilities using composer.

Usage
-----

[](#usage)

```
phpincludes [--php52] [-v]  [outputfile]

    This is the directory that will be scanned for PHP files.

  [outputfile]
    Outputfile is the file PHPIncludes writes to. If it's not specified, it will
    be sent to STDOUT

    If the output file already exists, it will attempt to update the existing
    includes file. It does so by looking at two markers in the file:

    // Begin includes\n
    and
    // End includes\n

    Every before '// Begin includes\n' will be retained, as well as everything
    after '// End includes\n'. Everything in between will be overwritten. The
    \n is a unix newline.

  --php52

    By default every include will be prefixed with the __DIR__ constant, so that
    every line looks like:

    include __DIR__ . '/File.php';

    If the php52 option is supplied, the __DIR__ constant is not used, but
    instead every file will be prefixed with dirname(__FILE__).

  -v
    The verbose option will show a lot of debugging output.

```

TODO
----

[](#todo)

- Files with no classes or interfaces are ignored, those need to be added
- Allow checking for files with extensions other than .php

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

4712d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec28c32d012f276f61b0b58cabe3c8f674166732d9b20eeddc3f9807857ba10?d=identicon)[evert](/maintainers/evert)

---

Top Contributors

[![evert](https://avatars.githubusercontent.com/u/178960?v=4)](https://github.com/evert "evert (20 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/evert-phpincludes/health.svg)

```
[![Health](https://phpackages.com/badges/evert-phpincludes/health.svg)](https://phpackages.com/packages/evert-phpincludes)
```

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

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