igorlealantunes / sportmonks-football-api-v3
Laravel package for Sportmonks Football Api(V3)
dev-main
2023-03-29 22:17 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ^9.0
- illuminate/support: ^9.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
- 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
This package is auto-updated.
Last update: 2024-04-30 00:56:50 UTC
README
Laravel package for Sportmonks Football Api(V3)
- ⚡️ Simple & Powerful
- 🤝 Support All Football Endpoints
- 👨💻 Active Development
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 pyaesoneaungrgn.github.io/sportmonks-football-api
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 pyaesoneaungrgn.github.io/sportmonks-football-api
Testing
Edit Sportmonks api token at tests/Pest.php
composer test