Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/solumdesignum/package-env-loader

Framework agnostic environment loader that abstracts PHP dotEnv for faster env loading.
https://github.com/solumdesignum/package-env-loader

develoment environment environment-variables opensource opensourcedevelopment pacakge package-env-loader packageenvloader packages php solumdesignum

Last synced: 1 day ago
JSON representation

Framework agnostic environment loader that abstracts PHP dotEnv for faster env loading.

Awesome Lists containing this project

README

        

[![StyleCI](https://github.styleci.io/repos/326625658/shield?branch=master)](https://github.styleci.io/repos/326625658)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/solumdesignum/package-env-loader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/solumdesignum/package-env-loader/?branch=master)
[![Total Downloads](https://poser.pugx.org/solumdesignum/package-env-loader/downloads)](https://packagist.org/packages/solumdesignum/package-env-loader)
[![Latest Stable Version](https://poser.pugx.org/solumdesignum/package-env-loader/v/stable)](https://packagist.org/packages/solumdesignum/package-env-loader)
[![Latest Unstable Version](https://poser.pugx.org/solumdesignum/package-env-loader/v/unstable)](https://packagist.org/packages/solumdesignum/package-env-loader)
[![MIT Licensed](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

## Introduction

Framework agnostic environment loader that abstracts PHP dotEnv for faster env loading.

## Installation

To get started, install PackageEnvLoader using the Composer package manager:

```shell
composer require solumdesignum/package-env-loader
```

## Origins

I created this package because, I was very frustrated with this issue that I can't share my .env file between javascript
frameworks due to this package was born.

## Usage

```php
packageEnvLoaded = $this->createPackageDotenv(['.env.first.test', '.env.second.test']);
}

/**
* Define the root path for environment files.
*
* @param array $paths
*
* @return array
*/
public function packageEnvRootPath(array $paths = [__DIR__ . '/..']): string|array
{
return $paths;
}
}

````

## Contributing

Thank you for considering contributing to the PackageEnvLoader. You can read the contribution
guidelines [here](CONTRIBUTING.md)

## Security

If you discover any security-related issues, please email to [Solum DeSignum](mailto:[email protected]).

## Credits

- [Oskars Germovs](https://github.com/Faks)

## About

[Solum DeSignum](https://solum-designum.eu) is a web design agency based in Latvia, Riga.

## License

PackageEnvLoader is open-sourced software licensed under the [MIT license](LICENSE.md)