danabrey / rookies-api
PHP wrapper for NFL rookies data JSON API at https://rookies.abrey.dev
1.0.3
2020-05-02 13:21 UTC
Requires
- php: ^7.2
- ext-json: *
- symfony/property-access: ^4.3
- symfony/serializer: ^4.3
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-29 05:53:21 UTC
README
Object-oriented PHP package for reading data from my rookies data API at https://rookies.abrey.dev.
Installation
Via Composer:
composer require danabrey/rookies-api
Usage
Player data:
use DanAbrey\RookiesApi\Client;
$stats = new Client();
$player = $stats->getPlayer('jerry-jeudy');
The return from getPlayer()
will be a Player
object.
Contributing/Contact
Please feel free to raise issues or open pull requests with suggestions on how to improve this project. For any informal questions, find me on Twitter at @danabrey.
License
- MIT license
- Copyright 2020 © Dan Abrey