PHPackages                             php\_modules/include-all - 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. php\_modules/include-all

ActiveLibrary

php\_modules/include-all
========================

A small and simple class to automatically include whole the directories and subdirectories files in php.

1.0.5(5y ago)11591MITPHPPHP &gt;=5.3.20

Since Apr 30Pushed 3y agoCompare

[ Source](https://github.com/php-module/include-all)[ Packagist](https://packagist.org/packages/php_modules/include-all)[ Docs](https://github.com/php-modules/include-all)[ RSS](/packages/php-modules-include-all/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

IncludeAll
==========

[](#includeall)

A small and simple class to automatically include whole the directories and subdirectories files in php using retalive or absolutes paths.

This should be used to bootstrap a group of the application dependencies that should be loaded everytime in a script.

Just a great way for avoiding to use the include or require serveral times when trying to load a big number of files inside a directory.

THE OLD WAY FOR INCLUDING FILES
-------------------------------

[](#the-old-way-for-including-files)

```
include 'myDirectory/someFile.php';
include 'myDirectory/otherFile.php';
include 'myDirectory/anotherFile.php';
include 'myDirectory/yetAnotherFile.php';
```

THE NEW WAY USING 'INCLUDE-ALL'
-------------------------------

[](#the-new-way-using-include-all)

You can use the include-all library with and without composer. If not using composer the library brigns an autoload file wich should be encountered inside the directory it is located. The `include-all autoload file` should be required such as the `vendor/autoload.php` is... Before trying to use the library.

### Without using composer autoload

[](#without-using-composer-autoload)

```
use Sammy\Packs\IncludeAll;

require_once 'path/to/include-all/autoload';

$includeAll = new IncludeAll;

# Using the dot slash (./) at the beggining
# of the path is assuming that myDirectory is
# located in the same directory[ or path] the
# php script is.
$includeAll->includeAll('./myDirectory');
```

### Using composer autoload

[](#using-composer-autoload)

```
use Sammy\Packs\IncludeAll;

# Assuming that the vendor directory is
# located in the same where the current
# script is.
require_once __DIR__ . '/vendor/autoload';

$includeAll = new IncludeAll;

# Using the dot slash (./) at the beggining
# of the path is assuming that myDirectory is
# located in the same directory[ or path] the
# php script is.
$includeAll->includeAll('./myDirectory');
```

HOW TO INSTALL
--------------

[](#how-to-install)

It is possible to get the source code from github following the url shown bellow: [php-module/include-all](https://github.com/php-module/include-all)

### If using composer:

[](#if-using-composer)

```
composer require php_modules/core php_modules/include-all
```

Adding it as a requirement inside the `composer.json` file:

```
{
  "require": {
    "php_modules/include-all": "^1.0.5"
  }
}
```

Simple using example:
---------------------

[](#simple-using-example)

```
$includeAll = require ('path/to/include-all/index.php');
$includeAll->includeAll ('./path/to/directory');
```

### Using the constructor directly

[](#using-the-constructor-directly)

```
require ('path/to/include-all/index.php');

use Sammy\Packs\IncludeAll;

$includeAll = new IncludeAll ();

$includeAll->includeAll ('./path/to/directory');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

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

Total

3

Last Release

1826d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/5ffa34ea5d902e5a32c23a0cb974c53d07c271d3240bfd458856352000274963?d=identicon)[php\_modules](/maintainers/php_modules)

---

Top Contributors

[![agostinhosamil](https://avatars.githubusercontent.com/u/53584688?v=4)](https://github.com/agostinhosamil "agostinhosamil (13 commits)")

---

Tags

autoloaddirectorybootstrapincludedirectoriesinclude-all

### Embed Badge

![Health badge](/badges/php-modules-include-all/health.svg)

```
[![Health](https://phpackages.com/badges/php-modules-include-all/health.svg)](https://phpackages.com/packages/php-modules-include-all)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89152.7M321](/packages/nette-robot-loader)

PHPackages © 2026

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