nuxed / environment
Nuxed Environment
Installs: 197
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Language:Hack
Requires
- hhvm: ^4.56
- hhvm/hsl: ^4.40
- nuxed/filesystem: ^1.5
Requires (Dev)
- facebook/fbexpect: ^2.7
- hhvm/hacktest: ^2.0
- hhvm/hhast: ^4.25
This package is auto-updated.
Last update: 2024-12-22 23:43:14 UTC
README
Nuxed Environment
The Nuxed Environment component provides functions that help you manage environment variables.
Installation
This package can be installed with Composer.
$ composer require nuxed/environment
Example
use namespace Nuxed\Environment; <<__EntryPoint>> async function main(): Awaitable<void> { await Environment\load('.env'); if(!Environment\contains('APP_MODE')) { Environment\put('APP_MODE', 'prod'); } $mode = Environment\mode(); switch($mode) { case Environment\Mode::Development: // Dev case Environment\Mode::Production: // Prod case Environment\Mode::Test: // Test } }
Security
For information on reporting security vulnerabilities in Nuxed, see SECURITY.md.
License
Nuxed is open-sourced software licensed under the MIT-licensed.