PHPackages                             vaneves/lottery - 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. vaneves/lottery

ActiveLibrary

vaneves/lottery
===============

Resultado das Principais Loterias do Brasil

v0.0.3(8y ago)5691UnlicensePHPPHP &gt;=5.3.0

Since Feb 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vaneves/lottery)[ Packagist](https://packagist.org/packages/vaneves/lottery)[ Docs](http://blog.vaneves.com)[ RSS](/packages/vaneves-lottery/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Lottery
=======

[](#lottery)

Installing
----------

[](#installing)

Via Composer

```
composer require vaneves/lottery

```

Cron Jobs
---------

[](#cron-jobs)

```
0 2 * * * wget -q -O tmp/megasena.html http://loterias.caixa.gov.br/wps/portal/loterias/landing/megasena/
0 2 * * * wget -q -O tmp/quina.html http://loterias.caixa.gov.br/wps/portal/loterias/landing/quina/
0 2 * * * wget -q -O tmp/lotofacil.html http://loterias.caixa.gov.br/wps/portal/loterias/landing/lotofacil/
0 2 * * * wget -q -O tmp/lotomania.html http://loterias.caixa.gov.br/wps/portal/loterias/landing/lotomania/
0 2 * * * wget -q -O tmp/timemania.html http://loterias.caixa.gov.br/wps/portal/loterias/landing/timemania/
0 2 * * * wget -q -O tmp/duplasena.html http://loterias.caixa.gov.br/wps/portal/loterias/landing/duplasena/

```

Usage
-----

[](#usage)

```
use Vaneves\Lottery\Lottery;
use Vaneves\Lottery\MegaSena;

$lottery = new MegaSena();
$lottery->load('html/megasena.html');

$result = new \stdClass;
$result->number = $lottery->getNumber();
$result->date = $lottery->getDate();
$result->result = $lottery->listResults();
$result->awards = $lottery->listAwards();
$result->next = $lottery->getNext();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3265d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78dd10e51f9ab3b0d703a4f61c9bd1415deb74b6401a3468b221e9f5f73fc990?d=identicon)[vaneves](/maintainers/vaneves)

---

Top Contributors

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

---

Tags

lotterymegasenaphplotterymega-sena

### Embed Badge

![Health badge](/badges/vaneves-lottery/health.svg)

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

###  Alternatives

[cloned/luckybox

A library to pick up the one with a specified probability from some items.

157.3k1](/packages/cloned-luckybox)

PHPackages © 2026

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