brieucthomas/ergast-client

PHP client for Ergast Developer API

v1.0.0 2018-02-20 11:29 UTC

This package is not auto-updated.

Last update: 2020-03-30 19:59:50 UTC


README

A simple Object Oriented wrapper for Ergast API, written with PHP7.

Requirements

  • PHP >= 7.1
  • Guzzle library,
  • (optional) PHPUnit to run tests.

Install

Via Composer:

$ composer require brieucthomas/ergast-client php-http/guzzle6-adapter

Why php-http/guzzle6-adapter? We are decoupled from any HTTP messaging client with help by HTTPlug. Read about clients in our docs.

Basic usage

<?php

// This file is generated by Composer
require_once __DIR__ . '/vendor/autoload.php';

$client = new \Ergast\Client();
$response = $client->sendRequest('/f1/circuits/monza');

License

ergast-client is licensed under the MIT License - see the LICENSE file for details.