cmfcmf/openweathermap-php-api
A lightweight, object-oriented PHP wrapper for OpenWeatherMap. Retrieve current weather, forecasts, and historical data by city name, coordinates, or city ID, with configurable units and language. Simple setup and clean response objects.
cmfcmf/openweathermap-php-api is a thin PHP client/parser for OpenWeatherMap, not a Laravel-native integration. It fits best as an infrastructure adapter inside a Laravel service, job, or CLI command that needs current weather, forecasts, or history. It should not be called directly from controllers, models, or domain services; wrap it behind an application-owned interface so the domain remains independent of both the package and OpenWeatherMap.WeatherProvider contract. Bind the implementation in Laravel’s service container, configure credentials via environment variables, and return application-owned DTOs rather than package objects. This keeps controllers, jobs, and domain logic testable and provider-agnostic.How can I help you explore Laravel packages today?