PHPackages                             nojimage/cakephp-environment - 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. nojimage/cakephp-environment

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

nojimage/cakephp-environment
============================

CakePHP Environment Plugn. The configuration switching library by filebase.

1.0.0(12y ago)11242.5k4MITPHPPHP &gt;=5.2.8

Since Jan 17Pushed 12y ago3 watchersCompare

[ Source](https://github.com/nojimage/cakephp-environment)[ Packagist](https://packagist.org/packages/nojimage/cakephp-environment)[ Docs](https://github.com/nojimage/cakephp-environment)[ RSS](/packages/nojimage-cakephp-environment/feed)WikiDiscussions master Synced 2w ago

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

CakePHP Environment Plugn
=========================

[](#cakephp-environment-plugn)

The configuration switching library by filebase.

Copyright 2014, ELASTIC Consultants Inc. ()

[![Build Status](https://camo.githubusercontent.com/78b04ac93ea642d397914b1dfe61541a21b0af370baf62c53de6d97bc4eb8912/68747470733a2f2f7472617669732d63692e6f72672f6e6f6a696d6167652f63616b657068702d656e7669726f6e6d656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/nojimage/cakephp-environment)

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

[](#installation)

git clone

```
git clone http://github.com/nojimage/cakephp-environment app/Plugin/Environment

```

or use composer

```
composer require nojimage/cakephp-environment:dev-master

```

How to Setup
------------

[](#how-to-setup)

### 1. Create env file dir

[](#1-create-env-file-dir)

Create `app/Config/env` direcotry.

```
mkdir app/Config/env

```

### 2. Create each environments configuration files

[](#2-create-each-environments-configuration-files)

Create dirs

```
mkdir app/Config/development app/Config/staging app/Config/production

```

and create each environments bootstrap file.

```
vi app/Config/development/bootstrap.php
vi app/Config/staging/bootstrap.php
vi app/Config/production/bootstrap.php

```

### 3. Setup APP/Config/bootstrap.php

[](#3-setup-appconfigbootstrapphp)

in bootstrap.php

```
CakePlugin::load('Environment');
App::uses('Environment', 'Environment.Lib');
Environment::load(); // check env and loading each env bootstrap.php

```

### How to switching environment

[](#how-to-switching-environment)

Create file in `env` dir.

switch to development:

```
rm app/Config/env/* && touch app/Config/env/development

```

switch to production:

```
rm app/Config/env/* && touch app/Config/env/production

```

Usage
-----

[](#usage)

Please see [Wiki](https://github.com/nojimage/cakephp-environment/wiki) pages.

License
-------

[](#license)

Licensed under The MIT License. Redistributions of files must retain the above copyright notice.

Copyright 2014, ELASTIC Consultants Inc. ()

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4547d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cakephpenvironment

### Embed Badge

![Health badge](/badges/nojimage-cakephp-environment/health.svg)

```
[![Health](https://phpackages.com/badges/nojimage-cakephp-environment/health.svg)](https://phpackages.com/packages/nojimage-cakephp-environment)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19222.5k2](/packages/altis-core)[chronon/mobile_detect

A CakePHP plugin component for identifying mobile devices using the Mobile\_Detect project.

24252.6k1](/packages/chronon-mobile-detect)

PHPackages © 2026

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