From fc14d5c624cc60908419d5d6e84fafd0ce278ec2 Mon Sep 17 00:00:00 2001 From: "Martin Studer, fluxlabs ag" Date: Fri, 8 Apr 2022 15:07:05 -0400 Subject: [PATCH] 1-2-0 --- CHANGELOG.md | 3 +++ README.md | 17 ++++++++++------- composer.json | 4 ++-- examples/.env | 8 ++++---- examples/loadAndPrint.php | 4 ++-- examples/loadAndPrintFunctional.php | 6 +++--- fn/loadDotEnv.php | 2 +- 7 files changed, 25 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f4023b..fd7f944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## [1.2.0] +* changed functional namespace to fluxDotEnv + ## [1.1.0] * change set required version from php8.0 to php 7.4 diff --git a/README.md b/README.md index 9c76076..929fd93 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ Loads .env-Files .env-File ``` -MYSQL_HOST=localhost -MYSQL_DATABASE=projection -MYSQL_USER=emmett -PASSWORD=fluxcapacitor +STORAGE_HOST=localhost +STORAGE_NAME=projection +STORAGE_USER=emmett +STORAGE_PASSWORD=fluxcapacitor ``` loadAndPrint.php @@ -22,8 +22,8 @@ require_once __DIR__ . '/../vendor/autoload.php'; FluxEco\DotEnv\Api::new()->load(__DIR__); -echo getenv('MYSQL_USER').PHP_EOL; -echo getenv('PASSWORD').PHP_EOL; +echo getenv('STORAGE_USER').PHP_EOL; +echo getenv('STORAGE_PASSWORD').PHP_EOL; ``` output @@ -40,7 +40,10 @@ fluxcapacitor require_once __DIR__ . '/../vendor/autoload.php'; -fluxy\loadDotEnv(__DIR__); +fluxDotEnv\loadDotEnv(__DIR__); + +echo getenv('STORAGE_USER').PHP_EOL; +echo getenv('STORAGE_PASSWORD').PHP_EOL; ``` ## Contributing :purple_heart: diff --git a/composer.json b/composer.json index 7153893..1e4b48d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "flux-eco/dot-env", "description": "Loads .env-Files", - "version": "1.1.0", + "version": "1.2.0", "type": "flux-app", "keywords": [ "flux-eco", @@ -35,7 +35,7 @@ "FluxEco\\DotEnv\\": [ "src/" ], - "fluxy\\": [ + "fluxDotEnv\\": [ "fn/" ] } diff --git a/examples/.env b/examples/.env index fd1e9de..a7e92fa 100644 --- a/examples/.env +++ b/examples/.env @@ -1,4 +1,4 @@ -MYSQL_HOST=localhost -MYSQL_DATABASE=projection -MYSQL_USER=emmett -PASSWORD=fluxcapacitor \ No newline at end of file +STORAGE_HOST=localhost +STORAGE_NAME=projection +STORAGE_USER=emmett +STORAGE_PASSWORD=fluxcapacitor \ No newline at end of file diff --git a/examples/loadAndPrint.php b/examples/loadAndPrint.php index 11d2ba3..355e311 100644 --- a/examples/loadAndPrint.php +++ b/examples/loadAndPrint.php @@ -4,5 +4,5 @@ FluxEco\DotEnv\Api::new()->load(__DIR__); -echo getenv('MYSQL_USER').PHP_EOL; -echo getenv('PASSWORD').PHP_EOL; \ No newline at end of file +echo getenv('STORAGE_USER').PHP_EOL; +echo getenv('STORAGE_PASSWORD').PHP_EOL; \ No newline at end of file diff --git a/examples/loadAndPrintFunctional.php b/examples/loadAndPrintFunctional.php index 3f915b6..69b531e 100644 --- a/examples/loadAndPrintFunctional.php +++ b/examples/loadAndPrintFunctional.php @@ -2,7 +2,7 @@ require_once __DIR__ . '/../vendor/autoload.php'; -fluxy\loadDotEnv(__DIR__); +fluxDotEnv\loadDotEnv(__DIR__); -echo getenv('MYSQL_USER').PHP_EOL; -echo getenv('PASSWORD').PHP_EOL; \ No newline at end of file +echo getenv('STORAGE_USER').PHP_EOL; +echo getenv('STORAGE_PASSWORD').PHP_EOL; \ No newline at end of file diff --git a/fn/loadDotEnv.php b/fn/loadDotEnv.php index dcdda64..e0fb21e 100644 --- a/fn/loadDotEnv.php +++ b/fn/loadDotEnv.php @@ -1,6 +1,6 @@