A simple libraty to change PHP directives in your application.
Composer (https://getcomposer.org/) and (https://packagist.org/)
composer require helionogueir/changedirective
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);
Define locale as "English, USA", and collate as "UTF-8"
use helionogueir\changedirective\cgi\Locale;
(new Locale())->set("en-US", "utf-8")
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());
Define Locale as "London, England" (https://secure.php.net/manual/timezones.php)
use helionogueir\changedirective\cgi\Timezone;
(new Timezone())->set("Europe/London");
PHPUnit (https://phpunit.de/)
phpunit -c ./changedirective/tests/unit.xml