PHPackages                             tuum/builder - 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. tuum/builder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tuum/builder
============

a generic builder for PHP application based on environment.

1.0.0(8y ago)044[1 issues](https://github.com/TuumPHP/Builder/issues)MITPHP

Since Mar 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/TuumPHP/Builder)[ Packagist](https://packagist.org/packages/tuum/builder)[ RSS](/packages/tuum-builder/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (15)Used By (0)

Application Builder
===================

[](#application-builder)

A generic builder for application construction based on various server environment.

### Licence

[](#licence)

MIT License

### PSR

[](#psr)

PSR-1, PSR-2, and PSR-4.

### Installation

[](#installation)

```
composer require "tuum/builder: ^1.0.0"
```

### Sample Code

[](#sample-code)

```
use WScore\Builder\Builder;

$builder  = Builder::forge(
    __DIR__ . '/config,  // app directory
    __DIR__ . '/var',    // var directory
    true                 // debug
);
$builder->loadEnv();
$builder->load('setup');
$builder->load('routes');
if ($builder->isEnv('local')) {
    $builder->load('extra.local');
}

$app = $builder->getApp(); // get('DB_NAME', 'my_db');
```

### Environment File

[](#environment-file)

Loads `.env` file using [vlucas's dotenv](https://github.com/vlucas/phpdotenv) component. The default location of the `.env` file is at `VAR_DIR`.

The `.env` file contains `APP_ENV` key to specify the environment as such;

```
APP_ENV = local
```

Then, you can access the environment as,

```
$builder->loadEnv(); // load the .env file

$builder->isEnv('local');
$builder->isEnvProd();
$env = $builder->getEnv();
```

The builder considers the environment as `prod`if no environment is set, or no environment file to load.

To change the key string used to specify the environment, set `Builder::APP_KEY` value to the new key name, such as;

```
$builder->set(Builder::APP_KEY, 'ENV');  // set value
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

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

Recently: every ~5 days

Total

13

Last Release

3163d ago

Major Versions

0.3.2 → 1.0.02017-11-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ed783829e6fa0bd4b0def8c04ccfdfb2fc99f9e61e4a9470acad9e5abc5fcac?d=identicon)[asaokamei](/maintainers/asaokamei)

---

Top Contributors

[![asaokamei](https://avatars.githubusercontent.com/u/747030?v=4)](https://github.com/asaokamei "asaokamei (45 commits)")

---

Tags

application-builder

### Embed Badge

![Health badge](/badges/tuum-builder/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[lion/bundle

Lion-framework configuration and initialization package

122.4k4](/packages/lion-bundle)

PHPackages © 2026

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