{"id":36995214,"url":"https://github.com/brieucthomas/ergast-client","last_synced_at":"2026-01-13T23:47:32.158Z","repository":{"id":62497142,"uuid":"55439803","full_name":"brieucthomas/ergast-client","owner":"brieucthomas","description":"PHP client for Ergast Developer API","archived":false,"fork":false,"pushed_at":"2020-09-09T14:13:57.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"1.0","last_synced_at":"2025-05-04T22:07:32.567Z","etag":null,"topics":["ergast-api","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brieucthomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-04T19:46:10.000Z","updated_at":"2021-08-03T20:51:59.000Z","dependencies_parsed_at":"2022-11-02T11:32:29.455Z","dependency_job_id":null,"html_url":"https://github.com/brieucthomas/ergast-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brieucthomas/ergast-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brieucthomas%2Fergast-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brieucthomas%2Fergast-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brieucthomas%2Fergast-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brieucthomas%2Fergast-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brieucthomas","download_url":"https://codeload.github.com/brieucthomas/ergast-client/tar.gz/refs/heads/1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brieucthomas%2Fergast-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ergast-api","php"],"created_at":"2026-01-13T23:47:32.083Z","updated_at":"2026-01-13T23:47:32.141Z","avatar_url":"https://github.com/brieucthomas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ergast Client\n\n[![Build Status](https://img.shields.io/travis/brieucthomas/ergast-client/master.svg?style=flat-square)](https://travis-ci.org/brieucthomas/ergast-client)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Latest Version](https://img.shields.io/github/release/brieucthomas/ergast-client.svg?style=flat-square)](https://github.com/brieucthomas/ergast-client/releases)\n[![Total Downloads](https://img.shields.io/packagist/dt/brieucthomas/ergast-client.svg?style=flat-square)](https://packagist.org/packages/brieucthomas/ergast-client)\n\nPHP client for [Ergast Developer API](http://ergast.com/mrd/).\n\n## Requirements\n\nPHP needs to be a minimum version of PHP 7.\n\n## Installation\n\nThis library can be easily installed via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require brieucthomas/ergast-client\n```\n\nor just add it to your ```composer.json``` file directly and run composer install.\n\n## Usage\n\n```php\nuse BrieucThomas\\ErgastClient\\ErgastClientBuilder;\nuse BrieucThomas\\ErgastClient\\Request\\RequestBuilder;\n\n$ergastClient = ErgastClientBuilder::createErgastClient();\n\n$requestBuilder = new RequestBuilder();\n$requestBuilder\n    -\u003efindCircuits()\n    -\u003ebyId('monza')\n;\n\n$response = $ergastClient-\u003eexecute($requestBuilder-\u003ebuild());\n$circuit = $response-\u003egetCircuits()-\u003efirst();\n\necho $circuit-\u003egetId();                       // \"monza\"\necho $circuit-\u003egetName();                     // \"Autodromo Nazionale di Monza\"\necho $circuit-\u003egetUrl();                      // \"http://en.wikipedia.org/wiki/Autodromo_Nazionale_Monza\"\necho $circuit-\u003egetLocation()-\u003egetLocality();  // \"Monza\"\necho $circuit-\u003egetLocation()-\u003egetCountry();   // \"Italy\"\necho $circuit-\u003egetLocation()-\u003egetLatitude();  // 45.6156\necho $circuit-\u003egetLocation()-\u003egetLongitude(); // 9.28111\n```\n\n## Limit and offset\n\n```php\n$uriBuilder\n    -\u003esetFirstResult(2)\n    -\u003esetMaxResults(5)\n;\n``` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrieucthomas%2Fergast-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrieucthomas%2Fergast-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrieucthomas%2Fergast-client/lists"}