PHPackages                             nbn/loadbalancer - 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. nbn/loadbalancer

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

nbn/loadbalancer
================

LoadBalancer training component

1.0.1(9y ago)050[4 issues](https://github.com/nicolas-bastien/LoadBalancer/issues)1MITPHPPHP ^5.4||^7.0

Since Jul 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nicolas-bastien/LoadBalancer)[ Packagist](https://packagist.org/packages/nbn/loadbalancer)[ RSS](/packages/nbn-loadbalancer/feed)WikiDiscussions master Synced 4w ago

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

LoadBalancer
============

[](#loadbalancer)

[![Build Status](https://camo.githubusercontent.com/429d7ad290065b7eb17c0bea704cb39d9d6094e09a741411c080669347fc576a/68747470733a2f2f7472617669732d63692e6f72672f6e69636f6c61732d6261737469656e2f4c6f616442616c616e6365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nicolas-bastien/LoadBalancer)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/899b51615759c0ace243063b1bc962e68d7ff040ce99b5bb1ad8d6f409996740/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e69636f6c61732d6261737469656e2f4c6f616442616c616e6365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nicolas-bastien/LoadBalancer/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/fc189ac17bc38a2e71a546bbd4292b73840ca5ef80f042b818628d8ceb93dcdd/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64653366303562342d336130332d343437662d393662642d3135386331623636653439342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/de3f05b4-3a03-447f-96bd-158c1b66e494)[![Latest Stable Version](https://camo.githubusercontent.com/d0dce61245c23da340c1f521a7096028c70d92b67821b5be682bec1c4c759002/68747470733a2f2f706f7365722e707567782e6f72672f6e626e2f6c6f616462616c616e6365722f762f737461626c65)](https://packagist.org/packages/nbn/loadbalancer)[![Total Downloads](https://camo.githubusercontent.com/e052d343cf5e5ba43b60b1138866a18a7ae1503ea34912a483fe5060a4ba2d0c/68747470733a2f2f706f7365722e707567782e6f72672f6e626e2f6c6f616462616c616e6365722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/nbn/loadbalancer)

Overview
--------

[](#overview)

**Important** : This is a training projet, it's only purpose is to demonstrated how to develop an open source component.

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

[](#installation)

This is installable via [Composer](https://getcomposer.org/) as [nbn/loadbalancer](https://packagist.org/packages/nbn/loadbalancer):

```
composer require nbn/loadbalancer

```

Getting start
-------------

[](#getting-start)

This component provides you a loadbalancer class to handle your request.

You have the possibility to define a list of registered host and a chooser algorithm.

This component implement two chooser :

- RotationChooser : basic random chooser
- LoadLimitChosser : return host under a given load limit

Go further
----------

[](#go-further)

This component provided all the necessary set of interfaces to extends it as needed.

Contributing
------------

[](#contributing)

Pull requests are welcome.

Thanks to [everyone who has contributed](https://github.com/nicolas-bastien/LoadBalancer/graphs/contributors) already.

---

*Developed by [Nicolas Bastien](https://github.com/nicolas-bastien)*

Released under the MIT License

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3640d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1446466?v=4)[Nicolas Bastien](/maintainers/nicolas-bastien)[@nicolas-bastien](https://github.com/nicolas-bastien)

---

Tags

training

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nbn-loadbalancer/health.svg)

```
[![Health](https://phpackages.com/badges/nbn-loadbalancer/health.svg)](https://phpackages.com/packages/nbn-loadbalancer)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[illuminate/session

The Illuminate Session package.

9939.3M829](/packages/illuminate-session)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

645.9M37](/packages/symfony-ux-autocomplete)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)[illuminate/cookie

The Illuminate Cookie package.

244.6M135](/packages/illuminate-cookie)[typo3/cms-install

TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.

1812.3M458](/packages/typo3-cms-install)

PHPackages © 2026

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