armandsar / betvictor-broccoli
Api client for betvictor
0.2
2017-12-16 20:20 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ~5.3|~6.0
- illuminate/support: >=5.1.0
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: 6.*
This package is not auto-updated.
Last update: 2024-11-10 05:51:15 UTC
README
Simple betvictor api client for Laravel 5.
Install
Via Composer
$ composer require armandsar/betvictor-broccoli
After updating composer, add the ServiceProvider to the providers array in config/app.php
Armandsar\BetVictorBroccoli\ServiceProvider::class,
or let Laravel autoload package if on >= 5.5
Publish api config
$ php artisan vendor:publish
Usage
$client = new Armandsar\BetVictorBroccoli\BetVictorClient();
or let Laravel do this by type hinting dependency in constructors or controller methods
Available methods
Sports:
$client->sports();
$client->meetings($sportId);
$client->meetingEvents($sportId, $meetingId);
Testing
$ phpunit
License
The MIT License (MIT). Please see License File for more information.