PHPackages                             helionogueir/changedirective - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. helionogueir/changedirective

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

helionogueir/changedirective
============================

A simple libraty to change PHP directives in your application

v1.0.0(9y ago)039MITPHPPHP &gt;=7.0

Since Dec 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/helionogueir/changedirective)[ Packagist](https://packagist.org/packages/helionogueir/changedirective)[ Docs](https://github.com/helionogueir)[ RSS](/packages/helionogueir-changedirective/feed)WikiDiscussions master Synced 1mo ago

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

[Change Directive](https://github.com/helionogueir/changedirective)
===================================================================

[](#change-directive)

A simple libraty to change PHP directives in your application.

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

[](#installation)

Composer () and ()

```
composer require helionogueir/changedirective
```

---

Usage
-----

[](#usage)

### helionogueir\\changedirective\\cgi\\Debug

[](#helionogueirchangedirectivecgidebug)

Define debug mode as "Developer"

```
use helionogueir\changedirective\cgi\Debug;
(new Debug())->set(Debug::DEVELOPER);
```

Define debug mode as "Homologation"

```
use helionogueir\changedirective\cgi\Debug;
(new Debug())->set(Debug::HOMOLOGATION);
```

Define debug mode as "Production"

```
use helionogueir\changedirective\cgi\Debug;
(new Debug())->set(Debug::PRODUCTION);
```

---

### helionogueir\\changedirective\\cgi\\Locale

[](#helionogueirchangedirectivecgilocale)

Define locale as "English, USA", and collate as "UTF-8"

```
use helionogueir\changedirective\cgi\Locale;
(new Locale())->set("en-US", "utf-8")
```

---

### helionogueir\\changedirective\\cgi\\Session

[](#helionogueirchangedirectivecgisession)

Define session behavior and start session

```
use helionogueir\changedirective\cgi\Session;
(new Session())
  // Optional: Define session lifetime
  ->setMaxLifetime(3600)
  // Optional: Define session path storage files
  ->setPath(sys_get_temp_dir())
  // Start sesson
  ->start());
```

---

### helionogueir\\changedirective\\cgi\\Timezone

[](#helionogueirchangedirectivecgitimezone)

Define Locale as "London, England" ()

```
use helionogueir\changedirective\cgi\Timezone;
(new Timezone())->set("Europe/London");
```

---

TDD (Test Driven Development)
-----------------------------

[](#tdd-test-driven-development)

PHPUnit ()

```
phpunit -c ./changedirective/tests/unit.xml
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

3490d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/424582?v=4)[Helio Nogueira](/maintainers/helionogueir)[@helionogueir](https://github.com/helionogueir)

---

Top Contributors

[![helionogueir](https://avatars.githubusercontent.com/u/424582?v=4)](https://github.com/helionogueir "helionogueir (35 commits)")

---

Tags

debuglibrarytoolsessionlocaletimezonedirectivescollate

### Embed Badge

![Health badge](/badges/helionogueir-changedirective/health.svg)

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

###  Alternatives

[filp/whoops

php error handling for cool kids

13.2k420.3M1.5k](/packages/filp-whoops)[symfony/var-dumper

Provides mechanisms for walking through any arbitrary PHP variable

7.4k887.9M9.2k](/packages/symfony-var-dumper)[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k130.0M723](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k2.3M57](/packages/fruitcake-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k26.7M63](/packages/php-debugbar-php-debugbar)[kint-php/kint

Kint - Advanced PHP dumper

2.8k20.2M301](/packages/kint-php-kint)

PHPackages © 2026

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