Looking to hire Laravel developers? Try LaraJobs

laravel-runtime-config maintained by stepanenko3

Description
Runtime config based on collection for Laravel
Last update
2022/05/17 08:35 (dev-main)
License
Links
Downloads
163
Tags

Comments
comments powered by Disqus

Runtime Config

Latest Version on Packagist Total Downloads License

Description

Runtime config based on collection for Laravel

Requirements

  • php: >=8.0
  • laravel/framework: ^9.0

Installation

# Install the package
composer require stepanenko3/laravel-runtime-config

Usage

use Stepanenko3\LaravelRuntimeConfig\Facades\RuntimeConfig;

RuntimeConfig::putMany([
    'demo' => 100,
]);

RuntimeConfig::get('demo'); // result: 100
runtime_config('demo'); // result: 100

Credits

Contributing

Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.

License

This package is open-sourced software licensed under the MIT license.