{"id":43104292,"url":"https://github.com/mhauri/lotto-parser","last_synced_at":"2026-01-31T17:51:09.534Z","repository":{"id":62527754,"uuid":"341502091","full_name":"mhauri/lotto-parser","owner":"mhauri","description":"PHP library for parsing Swiss Lotto and Euro Millions results.","archived":false,"fork":false,"pushed_at":"2021-02-23T13:12:13.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T02:53:55.796Z","etag":null,"topics":["euromillions","parser","swisslos","swisslotto"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhauri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-23T09:38:17.000Z","updated_at":"2024-05-04T17:52:03.000Z","dependencies_parsed_at":"2022-11-02T14:16:37.617Z","dependency_job_id":null,"html_url":"https://github.com/mhauri/lotto-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mhauri/lotto-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhauri%2Flotto-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhauri%2Flotto-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhauri%2Flotto-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhauri%2Flotto-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhauri","download_url":"https://codeload.github.com/mhauri/lotto-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhauri%2Flotto-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["euromillions","parser","swisslos","swisslotto"],"created_at":"2026-01-31T17:51:08.911Z","updated_at":"2026-01-31T17:51:09.527Z","avatar_url":"https://github.com/mhauri.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/travis/com/mhauri/lotto-parser?style=flat-square)](https://travis-ci.com/mhauri/lotto-parser)\n[![Codacy Badge](https://img.shields.io/codacy/grade/5219b287ca0f4393b392688a8daa1919?style=flat-square)](https://www.codacy.com/gh/mhauri/lotto-parser/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=mhauri/lotto-parser\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://img.shields.io/codacy/coverage/5219b287ca0f4393b392688a8daa1919?label=code%20coverage\u0026style=flat-square)](https://www.codacy.com/gh/mhauri/lotto-parser/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=mhauri/lotto-parser\u0026utm_campaign=Badge_Coverage)\n\n# Lotto Parser\n\nPHP library for parsing [Swiss Lotto](https://www.swisslos.ch/en/swisslotto/information/winning-numbers/winning-numbers.html) and [Euro Millions](https://www.swisslos.ch/en/euromillions/information/winning-numbers/winning-numbers.html) results from [Swisslos](https://www.swisslos.ch/en/home.html).\n\n## Installation\n\n```  \ncomposer require mhauri/lotto-parser  \n```  \n\n## Usage\n\nTo get the latest results from Swiss Lotto\n\n```php \n     \u003c?php    \n     \n     use LottoParser\\Client\\SiwssLotto    \n     $lotto = new SwissLotto();      \n        \n     $data = $lotto-\u003ecurrent()-\u003eget();    \n     // to Array    \n     $data = $lotto-\u003ecurrent()-\u003etoArray();    \n     // to JSON    \n     $data = $lotto-\u003ecurrent()-\u003etoJson(); \n```   \n\nTo get the results from a specific date\n\n```php \n\t\n    \u003c?php    \n\t\n    use Carbon\\Carbon;    \n    use LottoParser\\Client\\SiwssLotto       \n       \n    $lotto = new SwissLotto();      \n        \n    $date = Carbon::create(2021,02,13);     \n    $data = $lotto-\u003ebyDate($date)-\u003eget();    \n    // to Array    \n    $data = $lotto-\u003ebyDate($date)-\u003etoArray();    \n    // to JSON    \n    $data = $lotto-\u003ebyDate($date)-\u003etoJson();\n\n```\n\nThe same applies for Euro Millions, just replace `$lotto = new SwissLotto()` with  \n`$lotto = new EuroMillions();`\n\nSupport\n-------  \nIf you have any issues with this library, open an issue on [GitHub](https://github.com/mhauri/lotto-parser/issues).\n\nContribution\n------------  \nAny contribution is highly appreciated. The best way to contribute code is to open\na [pull request on GitHub](https://help.github.com/articles/using-pull-requests).\n\nDeveloper\n---------  \n[Marcel Hauri](https://github.com/mhauri), and all\nother [contributors](https://github.com/mhauri/lotto-parser/contributors)\n\nLicense\n-------  \n[MIT](https://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhauri%2Flotto-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhauri%2Flotto-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhauri%2Flotto-parser/lists"}