PHPackages                             brieucthomas/ergast-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. brieucthomas/ergast-client

ActiveLibrary[API Development](/categories/api)

brieucthomas/ergast-client
==========================

PHP client for Ergast Developer API

v1.0.1(5y ago)38312MITPHPPHP &gt;=7.0CI failing

Since Feb 20Pushed 5y ago2 watchersCompare

[ Source](https://github.com/brieucthomas/ergast-client)[ Packagist](https://packagist.org/packages/brieucthomas/ergast-client)[ RSS](/packages/brieucthomas-ergast-client/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Ergast Client
=============

[](#ergast-client)

[![Build Status](https://camo.githubusercontent.com/19328033ed9f48ef33ed6b92d3ad00aad454626935a1c18480ccd195c9152558/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62726965756374686f6d61732f6572676173742d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/brieucthomas/ergast-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Version](https://camo.githubusercontent.com/cd306eb8512848ec36fa5cfc23d9245bcaa9307012a373f1e5cd4a40fd15e30c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62726965756374686f6d61732f6572676173742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/brieucthomas/ergast-client/releases)[![Total Downloads](https://camo.githubusercontent.com/448f817e81a42d831157823925b6848d9cb8b316d969edea77b677893f337fdb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62726965756374686f6d61732f6572676173742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brieucthomas/ergast-client)

PHP client for [Ergast Developer API](http://ergast.com/mrd/).

Requirements
------------

[](#requirements)

PHP needs to be a minimum version of PHP 7.

Installation
------------

[](#installation)

This library can be easily installed via [Composer](https://getcomposer.org/):

```
composer require brieucthomas/ergast-client
```

or just add it to your `composer.json` file directly and run composer install.

Usage
-----

[](#usage)

```
use BrieucThomas\ErgastClient\ErgastClientBuilder;
use BrieucThomas\ErgastClient\Request\RequestBuilder;

$ergastClient = ErgastClientBuilder::createErgastClient();

$requestBuilder = new RequestBuilder();
$requestBuilder
    ->findCircuits()
    ->byId('monza')
;

$response = $ergastClient->execute($requestBuilder->build());
$circuit = $response->getCircuits()->first();

echo $circuit->getId();                       // "monza"
echo $circuit->getName();                     // "Autodromo Nazionale di Monza"
echo $circuit->getUrl();                      // "http://en.wikipedia.org/wiki/Autodromo_Nazionale_Monza"
echo $circuit->getLocation()->getLocality();  // "Monza"
echo $circuit->getLocation()->getCountry();   // "Italy"
echo $circuit->getLocation()->getLatitude();  // 45.6156
echo $circuit->getLocation()->getLongitude(); // 9.28111
```

Limit and offset
----------------

[](#limit-and-offset)

```
$uriBuilder
    ->setFirstResult(2)
    ->setMaxResults(5)
;
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~466 days

Total

3

Last Release

2068d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50e55032988467253880977dbf911cc465bfb11b425b1c6de6994b7dc024f959?d=identicon)[Brieucthomas](/maintainers/Brieucthomas)

---

Top Contributors

[![brieucthomas](https://avatars.githubusercontent.com/u/3427873?v=4)](https://github.com/brieucthomas "brieucthomas (11 commits)")[![kletellier](https://avatars.githubusercontent.com/u/8279846?v=4)](https://github.com/kletellier "kletellier (1 commits)")

---

Tags

ergast-apiphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/brieucthomas-ergast-client/health.svg)

```
[![Health](https://phpackages.com/badges/brieucthomas-ergast-client/health.svg)](https://phpackages.com/packages/brieucthomas-ergast-client)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M467](/packages/saloonphp-saloon)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[chartmogul/chartmogul-php

ChartMogul API PHP Client

181.4M](/packages/chartmogul-chartmogul-php)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
