🔧 add env config

This commit is contained in:
DrMaxNix 2024-02-08 14:57:45 +01:00
parent 6a35825f09
commit ab536a2f1f
3 changed files with 36 additions and 0 deletions

28
.env.template.php Normal file
View File

@ -0,0 +1,28 @@
<?php
declare(strict_types = 1);
namespace Kimendisch\Sbgg_Jetzt;
class Env {
/**
* Configuration for sending mail.
*/
const MAIL = [
// SMTP SERVER //
// smtp server address
"host" => "smtp.example.com",
// smtp port
"port" => 587,
// smtp username
"username" => "noreply@example.com",
// smtp password
"password" => "topsecret123",
// whether starttls should be used
// (ssl/tls will be used otherwise)
"starttls" => true
];
}
?>

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
meta.local.php
init.local.php
/.env.php

6
init.php Normal file
View File

@ -0,0 +1,6 @@
<?php
declare(strict_types = 1);
// LOAD ENV CONFIG //
require_once("./.env.php");
?>