armandsar/betvictor-broccoli

Api client for betvictor

0.2 2017-12-16 20:20 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:51:15 UTC


README

Software License Build Status Total Downloads

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.