PHPackages                             ivebe/tombola - 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. ivebe/tombola

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

ivebe/tombola
=============

Ticket generator for tombola gambling game

0.0.1(9y ago)63445[1 issues](https://github.com/ivebe/tombola/issues)MITPHPPHP &gt;=5.5

Since Feb 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/ivebe/tombola)[ Packagist](https://packagist.org/packages/ivebe/tombola)[ RSS](/packages/ivebe-tombola/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Ivebe/Tombola [![Build Status](https://camo.githubusercontent.com/ee30dbddbe83af46bfcff7227ed8105fba44d44b20fcb1535caf6177a196900f/68747470733a2f2f7472617669732d63692e6f72672f69766562652f746f6d626f6c612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ivebe/tombola)
====================================================================================================================================================================================================================================================================================

[](#ivebetombola-)

Tombola is popular gambling game which consist of tables with 6 tickets. In each table there is 90 numbers, and each ticket contains 15 numbers. This package is PHP implementation with help of `harrysethi/Tambola-Ticket-Generator` explanation and java implementation.

#### Rules

[](#rules)

- One table consist of 6 tickets.
- It must have all numbers from 1 to 90, and they must be used only once
    - 1st column, numbers from 1 to 9
    - 2nd-8th column, numbers from 20-29, 30-39 ... 80-89
    - 9th column numbers from 80 to 90
- each row has exactly 5 numbers
- each column must have at least one number

#### Installation

[](#installation)

Install using composer.

```
composer require ivebe/tombola
```

#### Usage

[](#usage)

Just require composer autoloader if it's not already in your project, and following example will print simple table with 6 tickets.

```
require_once __DIR__ . '/vendor/autoload.php';

use Ivebe\Tombola\Table;

$table = new Table();
$table->generate();
$table->prettyPrint();
```

If you wish to get array of tickets and their numbers in order to further customize tickets, you can get it like this:

```
require_once __DIR__ . '/vendor/autoload.php';

use Ivebe\Tombola\Table;

$table = new Table();
$table->generate();

foreach( $table->getTickets() as $ticket ){
    $numbers = $ticket->getNumbers();
    //do something with it
}
```

There is also `Test` class which will verify table and return boolean `true/false`. You can use this and check is table valid. If it's not generate new table. It accepts array of tickets, and expect exactly 6 tickets of a single table. Why not pass `Table` object instead? It's done so that you can modify tickets, and verify that integrity of table is still intact.

```
require_once __DIR__ . '/vendor/autoload.php';

use Ivebe\Tombola\Table;
use Ivebe\Tombola\Test;

$table = new Table();
$table->generate();

$tickets = $table->getTickets();

var_dump(Test::verify($tickets));
```

#### License

[](#license)

MIT

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Unknown

Total

1

Last Release

3422d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4104576?v=4)[Danijel Petrovic](/maintainers/ivebe)[@ivebe](https://github.com/ivebe)

---

Top Contributors

[![dan-quantox](https://avatars.githubusercontent.com/u/17746156?v=4)](https://github.com/dan-quantox "dan-quantox (5 commits)")[![ivebe](https://avatars.githubusercontent.com/u/4104576?v=4)](https://github.com/ivebe "ivebe (2 commits)")[![adriferracuti](https://avatars.githubusercontent.com/u/1831360?v=4)](https://github.com/adriferracuti "adriferracuti (1 commits)")

### Embed Badge

![Health badge](/badges/ivebe-tombola/health.svg)

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

PHPackages © 2026

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