PHPackages                             samokspv/cakephp-db-configure - 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. samokspv/cakephp-db-configure

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

samokspv/cakephp-db-configure
=============================

Use it if you want to save and read serialized data into DB.

1.0.13(10y ago)122[2 issues](https://github.com/samokspv/CakePHP-DBConfigure/issues)1MITPHP

Since Feb 7Pushed 10y ago3 watchersCompare

[ Source](https://github.com/samokspv/CakePHP-DBConfigure)[ Packagist](https://packagist.org/packages/samokspv/cakephp-db-configure)[ Docs](https://github.com/samokspv/CakePHP-DBConfigure)[ RSS](/packages/samokspv-cakephp-db-configure/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (15)Used By (1)

CakePHP DBConfigure Plugin
==========================

[](#cakephp-dbconfigure-plugin)

[![Build Status](https://camo.githubusercontent.com/abfdc8726a50710c2febb364e588c464acc075d0ad859968bd5665df3f773c2c/68747470733a2f2f7472617669732d63692e6f72672f73616d6f6b7370762f43616b655048502d4442436f6e6669677572652e706e67)](https://travis-ci.org/samokspv/CakePHP-DBConfigure) [![Coverage Status](https://camo.githubusercontent.com/40fc4510207651f3436588400047e9a9d667e9c7416a894a3ac8a9532a9b8488/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f73616d6f6b7370762f43616b655048502d4442436f6e6669677572652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/samokspv/CakePHP-DBConfigure?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/63941c8548084af716bb0210a7abd7350344f9dab90091dba0967c485f29b791/68747470733a2f2f706f7365722e707567782e6f72672f73616d6f6b7370762f63616b657068702d64622d636f6e6669677572652f762f737461626c652e737667)](https://packagist.org/packages/samokspv/cakephp-db-configure) [![Total Downloads](https://camo.githubusercontent.com/ebfc9e6fb77019f053194a3eb21f38681dc0b4a6b17175603b91dbc4e1c10691/68747470733a2f2f706f7365722e707567782e6f72672f73616d6f6b7370762f63616b657068702d64622d636f6e6669677572652f646f776e6c6f6164732e737667)](https://packagist.org/packages/samokspv/cakephp-db-configure) [![Latest Unstable Version](https://camo.githubusercontent.com/3a88da50a020929a459d0dfe370d2160c0bc79265d6fc1fc7b3d091732d86d1d/68747470733a2f2f706f7365722e707567782e6f72672f73616d6f6b7370762f63616b657068702d64622d636f6e6669677572652f762f756e737461626c652e737667)](https://packagist.org/packages/samokspv/cakephp-db-configure) [![License](https://camo.githubusercontent.com/af8f83c723890ea22487d3701b9e0d920d85cbdd287d04bfac3de29553b3ed6a/68747470733a2f2f706f7365722e707567782e6f72672f73616d6f6b7370762f63616b657068702d64622d636f6e6669677572652f6c6963656e73652e737667)](https://packagist.org/packages/samokspv/cakephp-db-configure)

DBConfigure plugin for CakePHP 2.2+

Use it if you want to save and read serialized data into/from DB (DBConfigure::read = (Configure::write + DBConfigure::write)).

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

[](#installation)

```
cd my_cake_app/app
git clone git://github.com/samokspv/cakephp-DBConfigure.git Plugin/DBConfigure

```

or if you use git add as submodule:

```
cd my_cake_app
git submodule add "git://github.com/samokspv/cakephp-DBConfigure.git" "app/Plugin/DBConfigure"

```

then add plugin loading in Config/bootstrap.php

```
CakePlugin::load('DBConfigure');

```

Usage
-----

[](#usage)

In any place of your code:

```
App::uses('DBConfigure', 'DBConfigure.Utility');

For example:
// save to DB
DBConfigure::write('TestSetting', array(
	'key_1' => array(
		'key_1_1' => 'value_1_1',
		'key_1_2' => array(
			'key_1_2_1' => 'value_1_2_1'
		)
	)
));
// read from DB
DBConfigure::read('TestSetting');
	/*return: array(
		'key_1' => array(
			'key_1_1' => 'value_1_1',
			'key_1_2' => array(
				'key_1_2_1' => 'value_1_2_1'
			)
		)
	)*/
DBConfigure::read('TestSetting.key_1');
	/*return: array(
		'key_1_1' => 'value_1_1',
		'key_1_2' => array(
			'key_1_2_1' => 'value_1_2_1'
		)
	)*/
DBConfigure::read('TestSetting.key_1.key_1_2');
	/*return: array(
		'key_1_2_1' => 'value_1_2_1'
	)*/
DBConfigure::read('TestSetting.key_1_3', 'defaultValue_1_3');
	/*return: defaultValue_1_3*/

// save to DB
DBConfigure::write('TestSetting.key_1.key_1_2', 'value_1_2_1_update');
// read from DB
DBConfigure::read('TestSetting.key_1.key_1_2');
	/*return: array(
		'key_1_2_1' => 'value_1_2_1_update'
	)*/

// save to session
Configure::write('TestSetting.key_1', 'value_1');
Configure::write('TestSetting.key_2', 'value_2');
// save to DB
DBConfigure::write('TestSetting.key_2', 'value_2_update');
DBConfigure::write('TestSetting.key_3', 'value_3');
// read from DB
DBConfigure::read('TestSetting');
	/*return: array(
		'key_1' => 'value_1',
		'key_2' => 'value_2_update',
		'key_3' => 'value_3'
	)*/

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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 ~54 days

Recently: every ~115 days

Total

14

Last Release

3776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab9b1bb43e8563f1ff3fd78cb0bf0b28b55026a9f792f2b26aefae882e1512d2?d=identicon)[imsamurai](/maintainers/imsamurai)

---

Top Contributors

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

---

Tags

plugindatabasecakephpconfigure

### Embed Badge

![Health badge](/badges/samokspv-cakephp-db-configure/health.svg)

```
[![Health](https://phpackages.com/badges/samokspv-cakephp-db-configure/health.svg)](https://phpackages.com/packages/samokspv-cakephp-db-configure)
```

###  Alternatives

[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44165.0k2](/packages/dereuromark-cakephp-databaselog)[pixelstudio/wp-sync-db

WordPress plugin to sync database between different installs

472.5k1](/packages/pixelstudio-wp-sync-db)[imsamurai/cakephp-serializable-behaviour

Behavior for saving and reading serialized data from/into database

147.7k3](/packages/imsamurai-cakephp-serializable-behaviour)

PHPackages © 2026

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