{"id":37005287,"url":"https://github.com/lsv/windy-php-api","last_synced_at":"2026-01-14T00:40:00.055Z","repository":{"id":309733845,"uuid":"1037346719","full_name":"lsv/windy-php-api","owner":"lsv","description":"Windy PHP API client","archived":false,"fork":false,"pushed_at":"2025-08-13T13:12:42.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-13T15:19:33.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lsv.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,"zenodo":null}},"created_at":"2025-08-13T12:41:28.000Z","updated_at":"2025-08-13T13:10:38.000Z","dependencies_parsed_at":"2025-08-13T15:19:49.438Z","dependency_job_id":"8b6dca2d-0f98-4a74-966c-6a89a6969d7d","html_url":"https://github.com/lsv/windy-php-api","commit_stats":null,"previous_names":["lsv/windy-php-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lsv/windy-php-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Fwindy-php-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Fwindy-php-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Fwindy-php-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Fwindy-php-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsv","download_url":"https://codeload.github.com/lsv/windy-php-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsv%2Fwindy-php-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406520,"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":[],"created_at":"2026-01-14T00:39:59.392Z","updated_at":"2026-01-14T00:40:00.043Z","avatar_url":"https://github.com/lsv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windy API Client\n\nA library for interacting with the [Windy.com API](https://api.windy.com). This PHP client provides a streamlined way to request and handle weather forecast data from Windy's API.\n\n## Features\n\n- Easy integration with Windy.com API\n- PSR compliant (HTTP Client, Request, Response, Logger)\n- Supports Symfony Validator for request validation\n- Includes utilities for working with point forecasts and weather models\n- Fully tested with PHPUnit\n- Automatic API request and response handling\n\n## Requirements\n\n- PHP 8.1 or higher\n- A valid Windy API key\n- Composer for dependency management\n\n---\n\n## Installation\n\nInstall the library via Composer:\n\n```bash\ncomposer require lsv/windy-api\n```\n\n---\n\n## Usage\n\n### Basic forecast request\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Lsv\\Windy\\Request;\nuse Lsv\\Windy\\PointForecast\\PointForecastRequest;\nuse Lsv\\Windy\\PointForecast\\WeatherModels\\WeatherModels;\nuse Lsv\\Windy\\Shared\\Point;\n\n// Your Windy API key\n$apiKey = 'your_api_key_here';\n\n// Create a new request instance\n$request = new Request($apiKey);\n\n// Create a new PointForecastRequest\n$forecastRequest = new PointForecastRequest(\n    point: new Point(latitude: 55.6761, longitude: 12.5683), // Example coordinates: Copenhagen, Denmark\n    model: WeatherModels::AROME, // Multiple weather models are supported eg WeatherModels::IconEU, WeatherModels::GFS\n    parameters: null, // Optional: Use default parameters accepted by the model multiple parameters are available eg. [WeatherParameter::temp, WeatherParameter::dewpoint]\n    levels: null      // Optional: Use default levels [Levels::surface] is default, multiple levels are supported eg [Levels::surface, Levels::h1000]\n);\n\n// Send the request and get the response\ntry {\n    $response = $request-\u003erequest($forecastRequest);\n    // $response is an array of Time[] objects\n    // $response[0]-\u003etime - DateTimeInterface;\n    // $response[0]-\u003evalues - array of Value[] objects\n    // $response[0]-\u003evalues[0]-\u003ename - name of the value;\n    // $response[0]-\u003evalues[0]-\u003eunit - string - The value unit\n    // $response[0]-\u003evalues[0]-\u003evalue - int|float - the value;\n} catch (\\Throwable $e) {\n    echo 'Error: ' . $e-\u003egetMessage();\n}\n```\n\n## Todo\n- ~~Point forecast~~\n- Map forecast\n- Webcams\n\n\n## Development\n\n### Code Quality\n\nThe project uses PHPStan and PHP CS Fixer for static analysis and coding standards. Run the following command to check and fix code quality:\n\n```bash\ncomposer fix\n```\n\n---\n\n## License\n\nThis library is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsv%2Fwindy-php-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsv%2Fwindy-php-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsv%2Fwindy-php-api/lists"}