PHPackages                             vkarchevskyi/sinoptik.ua-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. vkarchevskyi/sinoptik.ua-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

vkarchevskyi/sinoptik.ua-parser
===============================

Parser of sinoptik.ua website

v1.0.9(1y ago)18MITPHPPHP ^8.4

Since Apr 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vkarchevskyi/sinoptik-scraper)[ Packagist](https://packagist.org/packages/vkarchevskyi/sinoptik.ua-parser)[ RSS](/packages/vkarchevskyi-sinoptikua-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

Weather scraper of sinoptik.ua
==============================

[](#weather-scraper-of-sinoptikua)

A lightweight PHP library for scraping weather data from [sinoptik.ua](https://sinoptik.ua) — one of Ukraine's most popular weather forecasting websites.

🌦️ Features
-----------

[](#️-features)

- Get current weather conditions
- Retrieve 10-day forecasts
- Access weather details by city
- Simple and clean API
- No API key required (web scraping based)

⚙️ Installation
---------------

[](#️-installation)

You can install the library via Composer:

```
composer require vkarchevskyi/sinoptik.ua-parser
```

🚀 Usage
-------

[](#-usage)

```
$data = new ScraperFactory()
    ->make()
    ->getCurrentTimeData()

echo json_encode($data);
```

Example output:

```
{
  "time": "15:00",
  "data": {
    "description": "Ясно",
    "temperature": "+12",
    "feelsLike": "+12",
    "pressure": "734",
    "humidity": "64",
    "wind": "2.5",
    "precipitationProbability": "54"
  }
}
```

You can customize scraper by providing city, date or timezone using factory methods:

```
$data = new ScraperFactory()
    ->setCity('Lviv')
    ->setDate(new DateTimeImmutable('+3 days'))
    ->setTimezone('Europe/Kyiv')
    ->make()
    ->getData()

echo json_encode($data);
```

Example output:

```
[
  {
    "time": "3:00",
    "data": {
      "description": "Невеликі високі хмари",
      "temperature": "-3",
      "feelsLike": "-3",
      "pressure": "741",
      "humidity": "85",
      "wind": "1.3",
      "precipitationProbability": "17"
    }
  },
  {
    "time": "9:00",
    "data": {
      "description": "Хмарно з проясненнями",
      "temperature": "0",
      "feelsLike": "-3",
      "pressure": "740",
      "humidity": "84",
      "wind": "2",
      "precipitationProbability": "58"
    }
  },
  {
    "time": "15:00",
    "data": {
      "description": "Суцільна хмарність",
      "temperature": "+4",
      "feelsLike": "+1",
      "pressure": "740",
      "humidity": "55",
      "wind": "4.3",
      "precipitationProbability": "76"
    }
  },
  {
    "time": "21:00",
    "data": {
      "description": "Невелика хмарність",
      "temperature": "+1",
      "feelsLike": "-1",
      "pressure": "742",
      "humidity": "57",
      "wind": "1.7",
      "precipitationProbability": "47"
    }
  }
]
```

📄 License
---------

[](#-license)

MIT License. See [LICENSE](https://github.com/vkarchevskyi/sinoptik.ua-parser/blob/main/LICENCE) for details.

🏙 Supported Cities
------------------

[](#-supported-cities)

You can pass any city slug used in the sinoptik.ua URL structure, such as: `kyiv``lviv``kharkiv``odesa``dnipro`

❗ Notes
-------

[](#-notes)

- This library relies on HTML structure of sinoptik.ua, which may change.
- Use responsibly — excessive scraping may lead to IP blocking.
- This package requires the minimal version of PHP 8.4.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance49

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~2 days

Total

10

Last Release

379d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpphp-scraperscrapersinoptikweather

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vkarchevskyi-sinoptikua-parser/health.svg)

```
[![Health](https://phpackages.com/badges/vkarchevskyi-sinoptikua-parser/health.svg)](https://phpackages.com/packages/vkarchevskyi-sinoptikua-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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