pdmfc / database-env-php-8-support
Get env variables from database
Installs: 2 519
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1.0
- jackiedo/dotenv-editor: ^2.0
Requires (Dev)
- orchestra/testbench: ^7.6.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-16 10:53:36 UTC
README
Installation
You can install the package via composer:
composer require pdmfc/database-env-php-8-support
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
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email vhugo@vitorhugo.pt instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.