PHPackages                             mahmut/meteoroloji-hava-durumu - 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. mahmut/meteoroloji-hava-durumu

ActiveLibrary[API Development](/categories/api)

mahmut/meteoroloji-hava-durumu
==============================

Meteoroloji Genel Müdürlüğü Hava Durumu Api

1.2.1(3y ago)031PHP

Since Aug 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mahmut/meteoroloji-hava-durumu)[ Packagist](https://packagist.org/packages/mahmut/meteoroloji-hava-durumu)[ RSS](/packages/mahmut-meteoroloji-hava-durumu/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Meteoroloji Genel Müdürlüğü Hava Durumu Apisi
=============================================

[](#meteoroloji-genel-müdürlüğü-hava-durumu-apisi)

İl, ilçe adına göre meteoroloji genel müdürlüğünden istasyon bilgileri, gün doğumu, gün batımı, günlük hava durumu ve 5 günlük hava tahminleri listesini kolayca alabilirsiniz.

Kurulum
-------

[](#kurulum)

```
composer require mahmut/meteoroloji-hava-durumu
```

Örnek
-----

[](#örnek)

```
// hava durumunu getir
try {

    $station = new \Meteoroloji\Entity\Station();
    // şehir adı
    $station->city = 'ankara';
    // ilçe adı - boş bırakılabilir
    $station->town = 'cankaya';

    // konuma göre havadurumu getirilecekse
    // enlem
    $station->latitude = 39.903;
    // boylam
    $station->longitude = 32.809;

    // konuma göre havadurumu bulunması için : \Meteoroloji\Entity\StationType::Location
    // il/ilçeye göre havadurumu bulunması için : \Meteoroloji\Entity\StationType::City
    $weather = new \Meteoroloji\Weather($station, \Meteoroloji\Entity\StationType::City);
    $result = $weather
        ->setLanguage('tr') // ingilizce için 'en' kullanabilirsiniz.
        ->setCachePath(__DIR__ . '/cache/')
        ->cache(true)
        ->fetch();

    print_r($result);

} catch (\Meteoroloji\Exception\CurrentNotFoundException $e) {
    die($e->getMessage());
} catch (\Meteoroloji\Exception\ForecastNotFoundException $e) {
    die($e->getMessage());
} catch (\Meteoroloji\Exception\StationNotFoundException $e) {
    die($e->getMessage());
} catch (\Meteoroloji\Exception\Exception $e) {
    die($e->getMessage());
}
```

Çıktı
-----

[](#çıktı)

```
Meteoroloji\Entity\Result Object
(
    [station] => Meteoroloji\Entity\Station Object
        (
            [city] => Ankara
            [town] => Çankaya
            [centerId] => 90614
            [latitude] => 39.9075
            [longitude] => 32.8494
            [altitude] => 927
            [sunrise] => 06:08
            [sunset] => 19:33
        )

    [current] => Meteoroloji\Entity\Current Object
        (
            [date] => 23.08.2021 21:46
            [stationNumber] => 18046
            [condition] => Meteoroloji\Entity\Condition Object
                (
                    [code] => A
                    [name] => Açık
                    [icon] => https://mgm.gov.tr/Images_Sys/hadiseler/A.svg
                )

            [temp] => 20.1
            [humidity] => 58
            [windDirection] => 7
            [windSpeed] => 2.16
            [pressure] => 908.8
            [seaLevelPressure] => 1008.1
            [sight] => 33020
        )

    [forecasts] => Array
        (
            [0] => Meteoroloji\Entity\Forecast Object
                (
                    [date] => 24.08.2021
                    [lowest] => 15
                    [highest] => 31
                    [lowestHumidity] => 17
                    [highestHumidity] => 82
                    [condition] => Meteoroloji\Entity\Condition Object
                        (
                            [code] => AB
                            [name] => Az Bulutlu
                            [icon] => https://mgm.gov.tr/Images_Sys/hadiseler/AB.svg
                        )

                    [windSpeed] => 12
                    [windDirection] => 70
                )

            [1] => Meteoroloji\Entity\Forecast Object
                (
                    [date] => 25.08.2021
                    [lowest] => 16
                    [highest] => 34
                    [lowestHumidity] => 15
                    [highestHumidity] => 73
                    [condition] => Meteoroloji\Entity\Condition Object
                        (
                            [code] => PB
                            [name] => Parçalı Bulutlu
                            [icon] => https://mgm.gov.tr/Images_Sys/hadiseler/PB.svg
                        )

                    [windSpeed] => 10
                    [windDirection] => 308
                )

            [2] => Meteoroloji\Entity\Forecast Object
                (
                    [date] => 26.08.2021
                    [lowest] => 19
                    [highest] => 34
                    [lowestHumidity] => 18
                    [highestHumidity] => 44
                    [condition] => Meteoroloji\Entity\Condition Object
                        (
                            [code] => AB
                            [name] => Az Bulutlu
                            [icon] => https://mgm.gov.tr/Images_Sys/hadiseler/AB.svg
                        )

                    [windSpeed] => 14
                    [windDirection] => 249
                )

            [3] => Meteoroloji\Entity\Forecast Object
                (
                    [date] => 27.08.2021
                    [lowest] => 20
                    [highest] => 34
                    [lowestHumidity] => 15
                    [highestHumidity] => 63
                    [condition] => Meteoroloji\Entity\Condition Object
                        (
                            [code] => AB
                            [name] => Az Bulutlu
                            [icon] => https://mgm.gov.tr/Images_Sys/hadiseler/AB.svg
                        )

                    [windSpeed] => 11
                    [windDirection] => 293
                )

            [4] => Meteoroloji\Entity\Forecast Object
                (
                    [date] => 28.08.2021
                    [lowest] => 18
                    [highest] => 35
                    [lowestHumidity] => 16
                    [highestHumidity] => 64
                    [condition] => Meteoroloji\Entity\Condition Object
                        (
                            [code] => SCK
                            [name] => Sıcak
                            [icon] => https://mgm.gov.tr/Images_Sys/hadiseler/SCK.svg
                        )

                    [windSpeed] => 10
                    [windDirection] => 70
                )

        )

)
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~172 days

Total

4

Last Release

1208d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67c281c6bd022892b09084c73a854145d7a4ccbcb1a06455b268c36a84f45cf5?d=identicon)[mahmutozdemir](/maintainers/mahmutozdemir)

### Embed Badge

![Health badge](/badges/mahmut-meteoroloji-hava-durumu/health.svg)

```
[![Health](https://phpackages.com/badges/mahmut-meteoroloji-hava-durumu/health.svg)](https://phpackages.com/packages/mahmut-meteoroloji-hava-durumu)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[nkl-kst/the-sports-db

PHP library to get sports data from TheSportsDB (https://www.thesportsdb.com)

271.2k](/packages/nkl-kst-the-sports-db)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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