hans-peter-ording / fantasypros-api-client
Client library to consume the FantasyPros public API (NFL) and transform results into data transfer objects.
Package info
github.com/HansPeterOrding/fantasypros-api-client
pkg:composer/hans-peter-ording/fantasypros-api-client
Requires
- php: >=8.3
- php-http/discovery: ^1.9
- php-http/logger-plugin: ^1.2
- phpdocumentor/reflection-docblock: ^5.3
- psr/http-client: ^1.0
- symfony/property-access: ^6.0|^7.0|^8.0
- symfony/property-info: ^6.0|^7.0|^8.0
- symfony/serializer: ^6.0|^7.0|^8.0
Requires (Dev)
- nyholm/psr7: ^1.8
- phpunit/phpunit: ^11.0
- symfony/http-client: ^7.0|^8.0
Suggests
- guzzlehttp/guzzle: Popular PSR-18 HTTP client implementation
- nyholm/psr7: Lightweight PSR-17 request/URI factory implementation, commonly paired with Guzzle
- symfony/http-client: PSR-18 client and PSR-17 factories in one package, usable via Psr18Client
README
API Client to consume the FantasyPros public API (NFL) with a PSR-18 compatible HTTP Client and transform results into DTO.
Package contains:
- Data transfer objects (DTO)
- API client factory
- API client with endpoints
An API key is required. Request one at https://secure.fantasypros.com/api-keys/request/ — mind the request limits of your subscription; this client is deliberately rate-limit agnostic and leaves budget enforcement to the consumer (e.g. via a PSR-18 decorator).
Documentation
Documentation for FantasyProsApiClient can be found at Read the docs
License
This package is released under the MIT license. See the included LICENSE file for more information.