Add repo hygiene rules and ignore secrets

This commit is contained in:
2026-02-03 06:55:39 +01:00
parent 88732a8ae7
commit 6035bc1715
52 changed files with 3295 additions and 25 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
require __DIR__ . '/../vendor/autoload.php';
$root = dirname(__DIR__, 1);
$repoRoot = dirname($root, 1);
if (file_exists($repoRoot . '/.env')) {
$dotenv = Dotenv\Dotenv::createImmutable($repoRoot);
$dotenv->safeLoad();
}
if (!getenv('APP_ENV')) {
putenv('APP_ENV=test');
}
if (!getenv('DEV_MODE')) {
putenv('DEV_MODE=1');
}