PHPackages                             adrian0350/cakephp-replication - 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. adrian0350/cakephp-replication

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

adrian0350/cakephp-replication
==============================

CakePHP 2.10.24 - MySQL Replication for MySQL 5.7

1.0.1(1y ago)0215MITPHPPHP &gt;=7.4.33

Since Jul 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Adrian0350/CakeReplication)[ Packagist](https://packagist.org/packages/adrian0350/cakephp-replication)[ Docs](https://github.com/Adrian0350/CakeReplication)[ RSS](/packages/adrian0350-cakephp-replication/feed)WikiDiscussions main Synced 1mo ago

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

CakePHP Replication for MySQL
=============================

[](#cakephp-replication-for-mysql)

CakeReplication helps you setup CakePHP 2.10 (latest and last) Replication for MySQL 5.7 in a more integrated way
adding a layer between Model and the MySQL default driver.
*It's been only tested using CakePHP version `^2.10.0`*

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

[](#requirements)

- PHP `^7.4`
- CakePHP `^2.10.0`
- MySQL `5.7`
- Updating your `app/Config/database.php`

*There are other versions of this implementation but are quite outdated, made for older CakePHP versions that*
*have missmatching class methods and arguments.*

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

[](#installation)

Install the Plugin with [Composer](https://getcomposer.org) from your CakePHP's ROOT directory.

```
 $ composer require adrian0350/cakephp-replication

```

Load `CakeReplication` Plugin in your `bootstrap.php`.

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

```

Add Datasourace in your `database.php` database configuration.

```
class DATABASE_CONFIG {
    public $default = array(
        'datasource'  => 'CakeReplication.Database/MysqlReplication',
        'persistent'  => false,
        'host'        => 'localhost',
        'login'       => 'cakephpuser',
        'password'    => 'c4k3roxx!',
        'database'    => 'my_cakephp_project',
        'prefix'      => ''
    );
}

```

*For a complete example of how to setup replication in your app see example `database.php`*

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

2

Last Release

667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d9089fa230a66f6d2cb3d1083421e8bb1623791bbc68ab8d7e2ee6df31e7f7b?d=identicon)[adrian0350](/maintainers/adrian0350)

---

Top Contributors

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

---

Tags

cakephpcakephp-pluginmysqlmysql-replicationmysqlcakephpreplicationmaster-slave

### Embed Badge

![Health badge](/badges/adrian0350-cakephp-replication/health.svg)

```
[![Health](https://phpackages.com/badges/adrian0350-cakephp-replication/health.svg)](https://phpackages.com/packages/adrian0350-cakephp-replication)
```

###  Alternatives

[krowinski/php-mysql-replication

Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.

338118.0k10](/packages/krowinski-php-mysql-replication)[dereuromark/cakephp-databaselog

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

44165.0k2](/packages/dereuromark-cakephp-databaselog)[pgbi/cakephp3-soft-delete

SoftDelete plugin for CakePHP

87291.9k](/packages/pgbi-cakephp3-soft-delete)[liqueurdetoile/cakephp-orm-json

Cakephp plugin to provide easy control over JSON type fields in database

1461.1k](/packages/liqueurdetoile-cakephp-orm-json)

PHPackages © 2026

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