PHPackages                             jani/laravel-db-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jani/laravel-db-config

ActivePackage[Utility &amp; Helpers](/categories/utility)

jani/laravel-db-config
======================

laravel 读写数据库Config,基于Laravel5.1插件。

1.0.x-dev(9y ago)042MITPHPPHP &gt;=5.5.9

Since Aug 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/xujianhua/laravel-db-config)[ Packagist](https://packagist.org/packages/jani/laravel-db-config)[ Docs](https://github.com/xujianhua/laravel-db-config)[ RSS](/packages/jani-laravel-db-config/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

laravel-db-config
=================

[](#laravel-db-config)

> 基于laravel5.1.\*以上版本的系统数据库读写配置文件。

安装
--

[](#安装)

1. 安装包文件

```
composer require jani/laravel-db-config
```

配置
--

[](#配置)

### Laravel 应用

[](#laravel-应用)

1. 注册 `ServiceProvider`:

```
Jani\DbConfig\DbConfigServiceProvider::class,
```

2. 创建配置文件：

```
php artisan vendor:publish
```

3. 请修改应用根目录下的 `config/db_config.php` 中对应的项即可；
4. （可选）添加外观到 `config/app.php` 中的 `aliases` 部分:

```
'DbConfig' =>Jani\DbConfig\Facades\DbConfigFacades::class,
```

5.使用

```
/*
*可以是个string字符串或array字符串群发
*/
\DbConfig::set('key','value');
\DbConfig::get('key','default_value');
\DbConfig::delete('key');
```

License
-------

[](#license)

无

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

Unknown

Total

1

Last Release

3603d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3361529?v=4)[Jianhua Xu](/maintainers/xujianhua)[@xujianhua](https://github.com/xujianhua)

---

Top Contributors

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

---

Tags

laravelconfig

### Embed Badge

![Health badge](/badges/jani-laravel-db-config/health.svg)

```
[![Health](https://phpackages.com/badges/jani-laravel-db-config/health.svg)](https://phpackages.com/packages/jani-laravel-db-config)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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