laravel-loterias-api maintained by celsonery
Description
A little Laravel package for integration with Loterias Api.
Author
Last update
2026/06/10 23:59
(dev-main)
License
Downloads
1
Tags
laravel - caixa - federal - loterias - megasena - quina - lotofacil - lotomania - celsonery - laravel-loterias-api - maismilionaria - timemania - duplasena - diadesorte - supersete
Laravel LoteriasApi Package - By Celso Nery
A little package utility to work with Loterias Api services
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
- 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
composer tests
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.