PHP code example of celsonery / laravel-loterias-api

1. Go to this page and download the library: Download celsonery/laravel-loterias-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

celsonery / laravel-loterias-api example snippets


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

use CelsoNery\LoteriasApi\Facades\LoteriasApi;

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

return $response;

use CelsoNery\LoteriasApi\LoteriasApiService;

public function index(LoteriasApiService $service)
{
    return $service->megaSena('00100001');
}
bash
php artisan loteriasapi:install
bash
php artisan vendor:publish --tag="loteriasapi-config"