PHPackages                             pdmfc/database-env-php-8-support - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. pdmfc/database-env-php-8-support

ActiveLibrary[Database &amp; ORM](/categories/database)

pdmfc/database-env-php-8-support
================================

Get env variables from database

05.6k↓50%PHP

Since Feb 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pdmfc/database-env-php-8-support)[ Packagist](https://packagist.org/packages/pdmfc/database-env-php-8-support)[ RSS](/packages/pdmfc-database-env-php-8-support/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Database-ENV
============

[](#database-env)

[![Latest Version on Packagist](https://camo.githubusercontent.com/37964ebccd1989c8aaabb545ffc3b93e83ccd735f9f31d6575c97154bbe98a5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70646d66632f64617461626173652d656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pdmfc/database-env)[![Total Downloads](https://camo.githubusercontent.com/de812eb9ea6313731df9837fba6132224179e832b10834bae46b36eb4aba72ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70646d66632f64617461626173652d656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pdmfc/database-env)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require pdmfc/database-env-php-8-support
```

Usage
-----

[](#usage)

Add the DatabaseEnv `setConfig()` to `AppServiceProvider`

```
// app/Providers/AppServiceProvider.php
public function boot(): void
{
    DatabaseEnv::setConfig();
    ...
}
```

Run the DatabaseEnv `migration`

```
php artisan migrate
```

Run the DatabaseEnv command `database-env:add` to add the key=value pair variable of .env to database

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Vitor Hugo](https://github.com/pdmfc)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58304323?v=4)[PDMFC](/maintainers/pdmfc)[@pdmfc](https://github.com/pdmfc)

---

Top Contributors

[![felipereispdmfc](https://avatars.githubusercontent.com/u/160145038?v=4)](https://github.com/felipereispdmfc "felipereispdmfc (2 commits)")[![HenriqueSPin](https://avatars.githubusercontent.com/u/12719645?v=4)](https://github.com/HenriqueSPin "HenriqueSPin (1 commits)")[![vitorhugodotpt](https://avatars.githubusercontent.com/u/3043884?v=4)](https://github.com/vitorhugodotpt "vitorhugodotpt (1 commits)")

### Embed Badge

![Health badge](/badges/pdmfc-database-env-php-8-support/health.svg)

```
[![Health](https://phpackages.com/badges/pdmfc-database-env-php-8-support/health.svg)](https://phpackages.com/packages/pdmfc-database-env-php-8-support)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
