Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imponeer/env
Small helpers dealing with environment variables
https://github.com/imponeer/env
composer-library environment hacktoberfest
Last synced: about 2 months ago
JSON representation
Small helpers dealing with environment variables
- Host: GitHub
- URL: https://github.com/imponeer/env
- Owner: imponeer
- License: mit
- Created: 2022-06-10T20:38:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T00:04:27.000Z (5 months ago)
- Last Synced: 2024-10-02T08:10:20.865Z (3 months ago)
- Topics: composer-library, environment, hacktoberfest
- Language: PHP
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License](https://img.shields.io/github/license/imponeer/env.svg)](LICENSE)
[![GitHub release](https://img.shields.io/github/release/imponeer/env.svg)](https://github.com/imponeer/env/releases) [![PHP](https://img.shields.io/packagist/php-v/imponeer/env.svg)](http://php.net)
[![Packagist](https://img.shields.io/packagist/dm/imponeer/env.svg)](https://packagist.org/packages/imponeer/env)# ENV
Small helper dealing with environment variables.
## Installation
To install and use this package, we recommend to use [Composer](https://getcomposer.org):
```bash
composer require imponeer/env
```Otherwise, you need to include manually files from `src/` directory.
## Usage example
```php
$path = env('PATH', '/src');
$enable = !!env('ENABLE_APP');
```## How to contribute?
If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try [interactive GitHub tutorial](https://skills.github.com).
If you found any bug or have some questions, use [issues tab](https://github.com/imponeer/env/issues) and write there your questions.