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.1.0(2mo ago)28MITPHPPHP ^8.4

Since Apr 5Pushed 2mo 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 today

READMEChangelog (10)Dependencies (4)Versions (12)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

43

—

FairBetter than 89% of packages

Maintenance86

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~39 days

Recently: every ~97 days

Total

11

Last Release

67d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/80644867?v=4)[Volodymyr Karchevskyi](/maintainers/vkarchevskyi)[@vkarchevskyi](https://github.com/vkarchevskyi)

---

Top Contributors

[![vkarchevskyi](https://avatars.githubusercontent.com/u/80644867?v=4)](https://github.com/vkarchevskyi "vkarchevskyi (52 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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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