Support a .env file, include a .env.example
This commit is contained in:
@ -2,7 +2,12 @@
|
||||
<?php
|
||||
|
||||
require_once 'vendor/autoload.php';
|
||||
$client = new Redmine\Client('https://hq.megaphonetech.com', '965fddd60cfb5690d15542944998058224d7289f');
|
||||
|
||||
// Load the .env file
|
||||
$dotenv = new Dotenv\Dotenv(__DIR__);
|
||||
$dotenv->load();
|
||||
|
||||
$client = new Redmine\Client(getenv('REDMINE_URL'), getenv('REDMINE_API_KEY'));
|
||||
$client->setCheckSslCertificate(true);
|
||||
|
||||
$limit = 100;
|
||||
|
Reference in New Issue
Block a user