Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/programmatordev/sportmonksfootball-php-api
SportMonksFootball PHP library that provides convenient access to the SportMonks Football API with PSR-18, PSR-17, PSR-6 and PSR-3 support
https://github.com/programmatordev/sportmonksfootball-php-api
football football-api php php8 psr-17 psr-18 psr-3 psr-6 sportmonks sportmonks-football-api
Last synced: 9 days ago
JSON representation
SportMonksFootball PHP library that provides convenient access to the SportMonks Football API with PSR-18, PSR-17, PSR-6 and PSR-3 support
- Host: GitHub
- URL: https://github.com/programmatordev/sportmonksfootball-php-api
- Owner: programmatordev
- License: mit
- Created: 2023-08-18T18:03:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T12:11:33.000Z (6 months ago)
- Last Synced: 2024-05-22T13:27:46.233Z (6 months ago)
- Topics: football, football-api, php, php8, psr-17, psr-18, psr-3, psr-6, sportmonks, sportmonks-football-api
- Language: PHP
- Homepage:
- Size: 653 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SportMonksFootball PHP API
[![Latest Version](https://img.shields.io/github/release/programmatordev/sportmonksfootball-php-api.svg?style=flat-square)](https://github.com/programmatordev/sportmonksfootball-php-api/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Tests](https://github.com/programmatordev/sportmonksfootball-php-api/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/programmatordev/sportmonksfootball-php-api/actions/workflows/ci.yml?query=branch%3Amain)SportMonksFootball PHP library that provides convenient access to the SportMonks Football API.
Supports [PSR-18 HTTP clients](https://www.php-fig.org/psr/psr-18), [PSR-17 HTTP factories](https://www.php-fig.org/psr/psr-17), [PSR-6 caches](https://www.php-fig.org/psr/psr-6) and [PSR-3 logs](https://www.php-fig.org/psr/psr-3).
## Requirements
- PHP 8.1 or higher.
## API Key
A key is required to be able to make requests to the API.
You must sign up for a [SportMonks account](https://www.sportmonks.com/football-api/) to get one.## Installation
Install the library via [Composer](https://getcomposer.org/):
```bash
composer require programmatordev/sportmonksfootball-php-api
```## Basic Usage
Simple usage looks like:
```php
use ProgrammatorDev\SportMonksFootball\SportMonksFootball;// initialize
$api = new SportMonksFootball('yourapikey');// get all livescores of the current day
$livescores = $api->livescores()->getAll();
```## Documentation
- [Usage](docs/01-usage.md)
- [Configuration](docs/02-configuration.md)
- [Supported Endpoints](docs/03-supported-endpoints.md)
- [Football](docs/03-supported-endpoints.md#football-endpoints)
- [Odds](docs/03-supported-endpoints.md#odds-endpoints)
- [Core](docs/03-supported-endpoints.md#core-endpoints)
- [Error Handling](docs/04-error-handling.md)
- [Entities](docs/05-entities.md)## Contributing
Any form of contribution to improve this library (including requests) will be welcome and appreciated.
Make sure to open a pull request or issue.## License
This project is licensed under the MIT license.
Please see the [LICENSE](LICENSE) file distributed with this source code for further information regarding copyright and licensing.