PHPackages                             webchemistry/svatky - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webchemistry/svatky

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webchemistry/svatky
===================

v1.0(9y ago)39.7k1PHPPHP &gt;= 7.1

Since Jun 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/WebChemistry/svatky)[ Packagist](https://packagist.org/packages/webchemistry/svatky)[ RSS](/packages/webchemistry-svatky/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1b5f97338206b1b7b2f082e8ef9fca6bf4d9965b42cbd1da7e20cc45c3c730ef/68747470733a2f2f7472617669732d63692e6f72672f5765624368656d69737472792f737661746b792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/WebChemistry/svatky)

České svátky
============

[](#české-svátky)

Instalace:

```
composer require webchemistry/svatky

```

Použití
-------

[](#použití)

Svátek dnes

```
$names = WebChemistry\NameDay::getToday();
```

Svátek zítra

```
$names = WebChemistry\NameDay::getTommorrow();
```

Svátek včera

```
$names = WebChemistry\NameDay::getYesterday();
```

Svátek přes třídu DateTime

```
$names = WebChemistry\NameDay::getByDateTime(new \DateTime('+ 1 month'));
```

Svátek přes timestamp

```
$names = WebChemistry\NameDay::getByTimestamp(time() + (3 * 24 * 60 * 60));
```

Svátek přes den a měsíc

```
$names = WebChemistry\NameDay::get(31, 12);
```

Jaký den a měsíc má svátek?

```
$date = WebChemistry\NameDay::getByName('Řehoř');
```

Metody
------

[](#metody)

Třída **WebChemistry\\Name**

```
$name->getNames(); // Vrací pole jmen v daném měsíci, většinou jednoprvkový
(string) $name; // Převede jména/jméno na string, v případě, že se jedná o více jmen, tak jsou oddělené čárkou a mezerou tzn. ", "
```

Třída **WebChemistry\\Date**

```
$date->getDay(); // Den jako int
$date->getMonth(); // Měsíc jako int
$date->toDateTime(); // Objekt DateTime s aktuálním rokem
$date->toTimestamp(); // Timestamp s aktuálním rokem
(string) $date; // String nejprve den, potom měsíc oddělené tečkou
```

**TODO:** Petr má svátek 22.2 a 29.6, není zahrnuto 29.6

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3300d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/312e788a47a251e05734378921d4596a91819b7de416fa18e77aa69e08798ea8?d=identicon)[Antik](/maintainers/Antik)

###  Code Quality

TestsCodeception

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webchemistry-svatky/health.svg)

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

###  Alternatives

[skrz/meta

Different wire formats, different data sources, single object model

6690.0k3](/packages/skrz-meta)

PHPackages © 2026

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