pyaesoneaung / sportmonks-football-api
Laravel package for Sportmonks Football Api(V3)
v2.1.2
2024-08-22 02:10 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ^9.0|^10.0|^11.0
- spatie/laravel-package-tools: ^1.13.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0|^8.0|^9.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
README
Laravel package for Sportmonks Football Api(V3)
Installation
composer require pyaesoneaung/sportmonks-football-api
.env
SPORTMONKS_FOOTBALL_API_TOKEN=Your-Sportmonks-Api-Token SPORTMONKS_FOOTBALL_TIMEZONE=Asia/Yangon
Documentation
📚 Read the full documentation at sportmonks-football-api.pyaesoneaung.dev
Basic Usage
Get All Fixtures
use SportmonksFootballApi; SportmonksFootballApi::fixture()->all();
Get Fixture by ID
use SportmonksFootballApi; SportmonksFootballApi::fixture()->byId($id);
Get All Fixtures With Request Options
use SportmonksFootballApi; SportmonksFootballApi::fixture() ->setSelect('name') ->setInclude('events.type') ->setFilter('eventTypes:18,14') ->setPage(2) ->all();
And more...
📚 Checkout the full documentation at sportmonks-football-api.pyaesoneaung.dev
Testing
Edit Sportmonks api token at tests/Pest.php
composer test