PHPackages                             byancode/remote-config - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. byancode/remote-config

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

byancode/remote-config
======================

Remote config for Laravel

v1.1.1(1y ago)021MITPHPPHP &gt;=8.0

Since May 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/byancode/remote-config)[ Packagist](https://packagist.org/packages/byancode/remote-config)[ RSS](/packages/byancode-remote-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Laravel Remote Config
=====================

[](#laravel-remote-config)

This package allows you to store configuration in a more persistent way. It uses the database to store your settings, and can save values in JSON format. You can also override Laravel's standard configuration.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Laravel 6.0 or higher (includes support for Laravel 11 and 12)

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

[](#installation)

### 1. Install

[](#1-install)

Run the following command:

```
composer require byancode/remote-config
```

### 2. Registration

[](#2-registration)

#### For Laravel 6.0 - Laravel 10.x

[](#for-laravel-60---laravel-10x)

Register the service provider in `config/app.php`

```
Byancode\RemoteConfig\ServiceProvider::class,
```

Add the alias if you want to use the facade.

```
'RemoteConfig' => Byancode\RemoteConfig\Facades\RemoteConfig::class,
```

#### For Laravel 11.x and later

[](#for-laravel-11x-and-later)

In Laravel 11 and later versions, service providers are registered in the `bootstrap/providers.php` file:

```
return [
    // Application service providers...
    Byancode\RemoteConfig\ServiceProvider::class,

    // Deferred service providers...
];
```

### 3. Publishing files

[](#3-publishing-files)

Publish the configuration file:

```
php artisan vendor:publish --provider="Byancode\RemoteConfig\ServiceProvider"
```

### 4. Configuration

[](#4-configuration)

You can change your application options from the `config/remote_config.php` file

Usage
-----

[](#usage)

You can use both the helper method `remote_config('foo')` and the facade `RemoteConfig::get('foo')`

### Facade

[](#facade)

```
# GETTER
RemoteConfig::get('foo');
RemoteConfig::get('foo.bar');
RemoteConfig::get('foo__bar');

# SETTER
RemoteConfig::set('foo', ['bar' => 'test']);
RemoteConfig::set('foo.bar', 'test');
```

### Helper

[](#helper)

```
$remoteConfig = remote_config();

# GETTER
remote_config('foo');
$remoteConfig->foo;
remote_config('foo.bar');
$remoteConfig->foo__bar;
$remoteConfig->get('foo.bar');

# SETTER
remote_config('foo', ['bar' => 'test']);
$remoteConfig->foo = ['bar' => 'test'];
$remoteConfig->foo__bar = 'test';
$remoteConfig->set('foo.bar', 'test');
```

### Blade Directive

[](#blade-directive)

You can get remote configuration directly in your blade templates using the helper method or the blade directive as `@remote_config('foo')`

Laravel Version Compatibility
-----------------------------

[](#laravel-version-compatibility)

Laravel VersionStatus6.x - 10.xCompatible11.x - 12.xCompatibleTroubleshooting Common Issues
-----------------------------

[](#troubleshooting-common-issues)

### Configuration not available in some environments

[](#configuration-not-available-in-some-environments)

If you find that your configurations are not available in certain environments, check that the migrations have been executed correctly:

```
php artisan migrate
```

### Conflicts with configuration cache

[](#conflicts-with-configuration-cache)

In some situations, it may be necessary to clear the configuration cache:

```
php artisan config:clear
```

License
-------

[](#license)

This package is open-source software licensed under the [MIT License](LICENSE.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance49

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

373d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e9c9c5834434d92ff6dd5b7b2cda28f7d438e2b034976898b9933e969c3e6c5?d=identicon)[byancode](/maintainers/byancode)

---

Top Contributors

[![byancode](https://avatars.githubusercontent.com/u/37272486?v=4)](https://github.com/byancode "byancode (4 commits)")

---

Tags

jsonlaravelconfigremotepersistent

### Embed Badge

![Health badge](/badges/byancode-remote-config/health.svg)

```
[![Health](https://phpackages.com/badges/byancode-remote-config/health.svg)](https://phpackages.com/packages/byancode-remote-config)
```

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[garf/laravel-conf

Store additional configs in JSON or Database (write, read)

246.4k](/packages/garf-laravel-conf)[json-mapper/laravel-package

The JsonMapper package for Laravel

25170.4k3](/packages/json-mapper-laravel-package)

PHPackages © 2026

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