Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/solumdesignum/package-env-loader
- Owner: SolumDeSignum
- License: mit
- Created: 2021-01-04T09:02:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T15:58:34.000Z (2 months ago)
- Last Synced: 2024-09-14T06:52:47.372Z (2 months ago)
- Topics: develoment, environment, environment-variables, opensource, opensourcedevelopment, pacakge, package-env-loader, packageenvloader, packages, php, solumdesignum
- Language: PHP
- Homepage: https://solum-designum.eu/
- Size: 38.1 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
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)