PHPackages                             hailong/enhanced-masterslaveconnection - 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. hailong/enhanced-masterslaveconnection

ActiveLibrary[Database &amp; ORM](/categories/database)

hailong/enhanced-masterslaveconnection
======================================

Add common enhancements to the Doctrine default MasterSlaveConnection implementation.

1.1(6y ago)05MITPHP

Since Nov 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Hailong/enhanced-masterslaveconnection)[ Packagist](https://packagist.org/packages/hailong/enhanced-masterslaveconnection)[ RSS](/packages/hailong-enhanced-masterslaveconnection/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Enhanced MasterSlaveConnection
==============================

[](#enhanced-masterslaveconnection)

Add common enhancements to the Doctrine default MasterSlaveConnection implementation.

Enhancements
------------

[](#enhancements)

- Force all the SELECT queries go to slave databases.
- Use a better random function `random_int` to balance the load among slave databases.

Adoption in Symfony Application
-------------------------------

[](#adoption-in-symfony-application)

Install the package and assign this enhanced version of MasterSlaveConnection to the `wrapper_class` property of `doctrine` configuration.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2359d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/354776?v=4)[hailong](/maintainers/hailong)[@Hailong](https://github.com/Hailong)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hailong-enhanced-masterslaveconnection/health.svg)

```
[![Health](https://phpackages.com/badges/hailong-enhanced-masterslaveconnection/health.svg)](https://phpackages.com/packages/hailong-enhanced-masterslaveconnection)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

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