https://github.com/pyaesoneaungrgn/sportmonks-football-api
Laravel package for Sportmonks Football Api(V3)
https://github.com/pyaesoneaungrgn/sportmonks-football-api
football-api php sportmonks sportmonks-football-api
Last synced: about 2 months ago
JSON representation
Laravel package for Sportmonks Football Api(V3)
- Host: GitHub
- URL: https://github.com/pyaesoneaungrgn/sportmonks-football-api
- Owner: PyaeSoneAungRgn
- License: mit
- Created: 2022-12-11T15:20:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T16:05:45.000Z (4 months ago)
- Last Synced: 2025-04-28T14:12:58.473Z (about 2 months ago)
- Topics: football-api, php, sportmonks, sportmonks-football-api
- Language: PHP
- Homepage: https://sportmonks-football-api.pyaesoneaung.dev
- Size: 255 KB
- Stars: 22
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Sportmonks Football Api
Laravel package for Sportmonks Football Api(V3)
## Installation
```bash
composer require pyaesoneaung/sportmonks-football-api
````.env`
```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](https://sportmonks-football-api.pyaesoneaung.dev)
## Basic Usage
#### Get All Fixtures
```php
use SportmonksFootballApi;SportmonksFootballApi::fixture()->all();
```#### Get Fixture by ID
```php
use SportmonksFootballApi;SportmonksFootballApi::fixture()->byId($id);
```#### Get All Fixtures With Request Options
```php
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](https://sportmonks-football-api.pyaesoneaung.dev)
## Testing
Edit Sportmonks api token at `tests/Pest.php`
```bash
composer test
```