PHPackages                             ammarshaikh-coderkube/bracket-generator - 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. ammarshaikh-coderkube/bracket-generator

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

ammarshaikh-coderkube/bracket-generator
=======================================

Bracket generator for PHP

01PHP

Since Jan 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ammarshaikh-coderkube/bracket-generator)[ Packagist](https://packagist.org/packages/ammarshaikh-coderkube/bracket-generator)[ RSS](/packages/ammarshaikh-coderkube-bracket-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Bracket Generator
=====================

[](#php-bracket-generator)

> Version v0.2

Table of Contents
=================

[](#table-of-contents)

1. [Introduction](#introduction)
2. [Downloading](#downloading)
3. [Usage example](#usage-example)

[Introduction](https://github.com/ammarshaikh-coderkube/bracket-generator/wiki/Home#introduction)
=================================================================================================

[](#introduction)

Welcome to bracket generator for PHP7 repo. This library uses HTML tables to render nice and clean game brackets. You can create brackets based on participant count, match list or even custom tree. Bracket visuals are also completly customizable.

Please, refer mainly to the [wiki pages](https://github.com/ammarshaikh-coderkube/bracket-generator/wiki).

[Downloading](https://github.com/ammarshaikh-coderkube/bracket-generator/wiki/Home#downloading)
===============================================================================================

[](#downloading)

The easiest way to get this library is to use [Composer](https://getcomposer.org/). While having Composer installed it takes only `composer require ammarshaikh-coderkube/bracket-generator`and `composer update` to get the library up and ready!

If you are not fan of Composer, you can download [whole repository in .zip archive](https://github.com/ammarshaikh-coderkube/bracket-generator/archive/master.zip)or clone the repository using Git - `git clone https://github.com/ammarshaikh-coderkube/bracket-generator`. *But in this case, you will have to create your own autoload function.*

[Usage example](https://github.com/ammarshaikh-coderkube/bracket-generator/wiki/Usage-example)
==============================================================================================

[](#usage-example)

All it takes to create a bracket is this:

```
use BracketGenerator\Bracket;
echo Bracket::create(8);
```

And what will you end up with after this? Take a look:

[![Empty bracket for 8 participants](https://camo.githubusercontent.com/bf50c5aa63ba71d5fb3f309a3e430dbaaff45457b7a3a60f04a82e57a2028017/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f563935625130617452384747796d6b5f73345f666e672e706e67)](https://camo.githubusercontent.com/bf50c5aa63ba71d5fb3f309a3e430dbaaff45457b7a3a60f04a82e57a2028017/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f563935625130617452384747796d6b5f73345f666e672e706e67)

It looks a bit empty so you can fill it up very easily - let's start from the beginning:

```
use BracketGenerator\Bracket;

$bracket = Bracket::create(8);
$bracket->fillByParticipantList([
	[ 'Participant 1', 0 ],
	[ 'Participant 2', 0 ],
	[ 'Participant 3', 0 ],
	[ 'Participant 4', 0 ],
	[ 'Participant 5', 0 ],
	[ 'Participant 6', 0 ],
	[ 'Participant 7', 0 ],
	[ 'Participant 8', 0 ],
]);

echo $bracket;
```

And that gives us:

[![Filled bracket for 8 participants](https://camo.githubusercontent.com/5860decff11814eb7d9b96f0964cdf1c4662a75bfc00fa0516c7483995d096d0/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f717a563663683673524a4765574b566a504a75764c772e706e67)](https://camo.githubusercontent.com/5860decff11814eb7d9b96f0964cdf1c4662a75bfc00fa0516c7483995d096d0/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f717a563663683673524a4765574b566a504a75764c772e706e67)

Please remember that the bracket visuals are completly customizable. This is just an example.

For more, please see [the wiki pages](https://github.com/ammarshaikh-coderkube/bracket-generator/wiki/Usage-example).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/343fb65583bc763dc428a81e29da7e8521862d6221f4ba6ddb80c3f26410f30d?d=identicon)[ammarshaikh-coderkube](/maintainers/ammarshaikh-coderkube)

---

Top Contributors

[![ammarshaikh-coderkube](https://avatars.githubusercontent.com/u/156744411?v=4)](https://github.com/ammarshaikh-coderkube "ammarshaikh-coderkube (1 commits)")

### Embed Badge

![Health badge](/badges/ammarshaikh-coderkube-bracket-generator/health.svg)

```
[![Health](https://phpackages.com/badges/ammarshaikh-coderkube-bracket-generator/health.svg)](https://phpackages.com/packages/ammarshaikh-coderkube-bracket-generator)
```

###  Alternatives

[kim/activity

Easily retrieve a list of users and guests that are online.

12830.4k](/packages/kim-activity)[nahid/presento

Presento is a package for PHP data presenter

747.2k](/packages/nahid-presento)[kzykhys/text

Simple text manipulation library for PHP5.4

544.5k1](/packages/kzykhys-text)[fogs/tagging-bundle

Tag any entity in your Symfony2 project.

113.5k](/packages/fogs-tagging-bundle)

PHPackages © 2026

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