2017 © Pedro Peláez
 

library ergast-client

PHP client for Ergast Developer API

image

brieucthomas/ergast-client

PHP client for Ergast Developer API

  • Monday, April 9, 2018
  • by Brieucthomas
  • Repository
  • 2 Watchers
  • 2 Stars
  • 783 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP Ergast API

A simple Object Oriented wrapper for Ergast API, written with PHP7., (*1)

Requirements

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

Install

Via Composer:, (*2)

$ 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., (*3)

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., (*4)

The Versions