PHPackages                             celsonery/laravel-loterias-api - 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. [API Development](/categories/api)
4. /
5. celsonery/laravel-loterias-api

ActiveLibrary[API Development](/categories/api)

celsonery/laravel-loterias-api
==============================

A little Laravel package for integration with Loterias Api.

1.0.0(1mo ago)01MITPHPPHP ^8.2CI passing

Since Jun 10Pushed 1mo agoCompare

[ Source](https://github.com/celsonery/laravel-loterias-api)[ Packagist](https://packagist.org/packages/celsonery/laravel-loterias-api)[ Docs](https://github.com/celsonery/laravel-loterias-api)[ RSS](/packages/celsonery-laravel-loterias-api/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Laravel LoteriasApi Package - By Celso Nery
===========================================

[](#laravel-loteriasapi-package---by-celso-nery)

A little package utility to work with Loterias Api services
-----------------------------------------------------------

[](#a-little-package-utility-to-work-with-loterias-api-services)

[![Maintainer](https://camo.githubusercontent.com/45e1990f156099c483e9b05133871192bcb8358d26633c38d7a989da6a16327c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d4063656c736f6e6572792d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/celsonery)[![Latest Version on Packagist](https://camo.githubusercontent.com/9abe05c5cff2e1b92ffaebc8e480658493b32f34a469e36177fb12b23c545085/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656c736f6e6572792f6c61726176656c2d6c6f7465726961736170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/celsonery/laravel-loteriasapi)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a08dcea5dedc3714fb5cfc6d5b06991cc1ea8bed32eb3939dbe81903f38cbf32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656c736f6e6572792f6c61726176656c2d6c6f7465726961736170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/celsonery/laravel-loteriasapi/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f2a4eb1da85cebae61b5d4fbed391186a40d0d403e09638fa2fd9c7d86d4983c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656c736f6e6572792f6c61726176656c2d6c6f7465726961736170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/celsonery/laravel-loteriasapi/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2a7f4ae1d02b1ab06796889cc7229f1f4964f8baca8ac1de55111496c81ddcef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656c736f6e6572792f6c61726176656c2d6c6f7465726961736170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/celsonery/laravel-loteriasapi)

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

[](#installation)

You can install the package via composer:

```
composer require celsonery/loteriasapi
```

You can publish the config file with:

```
php artisan loteriasapi:install
```

or

```
php artisan vendor:publish --tag="loteriasapi-config"
```

This is the contents of the published config file:

```
return [
    base_url => env('BASE_URL', 'https://loteriasapi.com.br/api')
];
```

Usage
-----

[](#usage)

- Via Facade

```
use CelsoNery\LoteriasApi\Facades\LoteriasApi;

$response = LoteriasApi::megaSena('3017');

return $response;
```

- Via DI

```
use CelsoNery\LoteriasApi\LoteriasApiService;

public function index(LoteriasApiService $service)
{
    return $service->megaSena('00100001');
}
```

Testing
-------

[](#testing)

```
composer tests
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Celso Nery](https://github.com/celsonery)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3494ad3c6faeafb657ccf282f2bbef26c0a9f275136c455fe146c720e021151?d=identicon)[Celso Nery](/maintainers/Celso%20Nery)

---

Top Contributors

[![celsonery](https://avatars.githubusercontent.com/u/13930284?v=4)](https://github.com/celsonery "celsonery (13 commits)")

---

Tags

laravelcaixafederalmegasenaquinalotofacillotomanialoteriascelsonerylaravel-loterias-apimaismilionariatimemaniaduplasenadiadesortesupersete

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/celsonery-laravel-loterias-api/health.svg)

```
[![Health](https://phpackages.com/badges/celsonery-laravel-loterias-api/health.svg)](https://phpackages.com/packages/celsonery-laravel-loterias-api)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

813336.8k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.6k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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