{"id":15030280,"url":"https://github.com/programmatordev/openweathermap-php-api","last_synced_at":"2025-04-14T18:42:39.663Z","repository":{"id":182076342,"uuid":"654548160","full_name":"programmatordev/openweathermap-php-api","owner":"programmatordev","description":"OpenWeatherMap PHP library that provides convenient access to the OpenWeatherMap API with PSR-18, PSR-17, PSR-6 and PSR-3 support","archived":false,"fork":false,"pushed_at":"2024-05-28T14:01:01.000Z","size":358,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-28T07:11:18.865Z","etag":null,"topics":["api","openweathermap","openweathermap-api","php","php8","psr-17","psr-18","psr-3","psr-6","weather-api"],"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/programmatordev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-16T11:15:50.000Z","updated_at":"2025-02-01T18:29:09.000Z","dependencies_parsed_at":"2024-05-13T12:33:52.194Z","dependency_job_id":"827625a7-a4ab-4cac-ac84-d9a40ebbe0fb","html_url":"https://github.com/programmatordev/openweathermap-php-api","commit_stats":null,"previous_names":["programmatordev/openweathermap-php-api"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fopenweathermap-php-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fopenweathermap-php-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fopenweathermap-php-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmatordev%2Fopenweathermap-php-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmatordev","download_url":"https://codeload.github.com/programmatordev/openweathermap-php-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248938429,"owners_count":21186408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","openweathermap","openweathermap-api","php","php8","psr-17","psr-18","psr-3","psr-6","weather-api"],"created_at":"2024-09-24T20:12:58.069Z","updated_at":"2025-04-14T18:42:39.628Z","avatar_url":"https://github.com/programmatordev.png","language":"PHP","readme":"# OpenWeatherMap PHP API\n\n[![Latest Version](https://img.shields.io/github/release/programmatordev/openweathermap-php-api.svg?style=flat-square)](https://github.com/programmatordev/openweathermap-php-api/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Tests](https://github.com/programmatordev/openweathermap-php-api/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/programmatordev/openweathermap-php-api/actions/workflows/ci.yml?query=branch%3Amain)\n\nOpenWeatherMap PHP library that provides convenient access to the OpenWeatherMap API.\n\nSupports [PSR-18 HTTP clients](https://www.php-fig.org/psr/psr-18), [PSR-17 HTTP factories](https://www.php-fig.org/psr/psr-17), [PSR-6 caches](https://www.php-fig.org/psr/psr-6) and [PSR-3 logs](https://www.php-fig.org/psr/psr-3).\n\n## Requirements\n\n- PHP 8.1 or higher.\n\n## API Key\n\nA key is required to be able to make requests to the API.\nYou must sign up for an [OpenWeatherMap account](https://openweathermap.org/appid#signup) to get one.\n\n## Installation\n\nInstall the library via [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require programmatordev/openweathermap-php-api\n```\n\n## Basic Usage\n\nSimple usage looks like:\n\n```php\nuse ProgrammatorDev\\OpenWeatherMap\\OpenWeatherMap;\n\n// initialize\n$api = new OpenWeatherMap('yourapikey');\n\n// get current weather by coordinate (latitude, longitude)\n$weather = $api-\u003eweather()-\u003egetCurrent(50, 50);\n// show current temperature\necho $weather-\u003egetTemperature();\n```\n\n## Documentation\n\n- [Usage](docs/01-usage.md)\n- [Configuration](docs/02-configuration.md)\n- [Supported APIs](docs/03-supported-apis.md)\n- [Error Handling](docs/04-error-handling.md)\n- [Entities](docs/05-entities.md)\n\n## Contributing\n\nAny form of contribution to improve this library (including requests) will be welcome and appreciated.\nMake sure to open a pull request or issue.\n\n## License\n\nThis project is licensed under the MIT license. \nPlease see the [LICENSE](LICENSE) file distributed with this source code for further information regarding copyright and licensing.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammatordev%2Fopenweathermap-php-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammatordev%2Fopenweathermap-php-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammatordev%2Fopenweathermap-php-api/lists"}