PHPackages                             sejurplacut/openweather - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sejurplacut/openweather

ActiveLibrary[API Development](/categories/api)

sejurplacut/openweather
=======================

Openweather API integration

051PHP

Since Feb 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tudor2004/openweather)[ Packagist](https://packagist.org/packages/sejurplacut/openweather)[ RSS](/packages/sejurplacut-openweather/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Openweather API
===============

[](#openweather-api)

Openweather API integration for Laravel framework. Get current weather or daily forecast using multiple parameters.

Installation
============

[](#installation)

Using composer:

```
"require": {
    "sejurplacut/openweather": "dev-master"
}

```

Setup
=====

[](#setup)

1. Add the following to your config/app.php file in the service providers array

    ```
     'Sejurplacut\Openweather\Provider\OpenweatherServiceProvider'

    ```
2. Add the following to your config/app.php file in the aliases array

    ```
     'OpenWeather' => 'Sejurplacut\OpenWeather\Facades\Openweather'

    ```
3. Publish configuration file:

    php artisan config:publish sejurplacut/openweather

> **Note:**Change the endpoint option with caution.

Usage
=====

[](#usage)

Get the daily forecast.

```
$data = Openweather::getInstance()->getDailyForecast(array(
    'cityName'     => 'Paris',
    'latitude'     => '',
    'longitude'    => '',
    'days'         => ''
    'units'        => 'metric',
    'languageCode' => 'en',
));

```

Get the current weather conditions

```
$data = Openweather::getInstance()->getCurrentWeather(array(
    'cityName' => 'Paris',
    'latitude' => '',
    'longitude' => '',
    'radius' => '',
    'units' => 'metric',
    'languageCode' => 'en',
));

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a115ab299db6d24cf808abff62584ba42d4b738e894b74be9b8104feb53d6b64?d=identicon)[tudor2004](/maintainers/tudor2004)

---

Top Contributors

[![tudor2004](https://avatars.githubusercontent.com/u/2884281?v=4)](https://github.com/tudor2004 "tudor2004 (4 commits)")

### Embed Badge

![Health badge](/badges/sejurplacut-openweather/health.svg)

```
[![Health](https://phpackages.com/badges/sejurplacut-openweather/health.svg)](https://phpackages.com/packages/sejurplacut-openweather)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
