PHPackages                             rozdol/dates - 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. rozdol/dates

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

rozdol/dates
============

Date manipulations dedicated to Cyprus Otrhodox Calendar

v1.0.2(7y ago)014MITPHP

Since Jun 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rozdol/dates)[ Packagist](https://packagist.org/packages/rozdol/dates)[ RSS](/packages/rozdol-dates/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

PHP Class for Date manipulations
================================

[](#php-class-for-date-manipulations)

About
-----

[](#about)

Dedicated to Cyprus Otrhodox Calendar to be used in local projects and libraries.

Install
-------

[](#install)

cd to `your_project_root_dir`

```
composer require rozdol/dates:"v1.*"
```

in Table or Model or Controller

```
use Rozdol\Dates\Dates;
$this->dates = new Dates();
$date_normalized = $this->dates->F_date('01/01/20', 1); // 01.01.2020
```

### Unit Test

[](#unit-test)

`cd dates`

```
composer update rozdol/dates
```

To test

```
./vendor/bin/phpunit tests/
```

Compose library Tutorial
------------------------

[](#compose-library-tutorial)

```
cd dates
composer update
git init
git .
git commit -m 'Initial commit'
```

Create github repo

```
git remote add origin git@github.com:rozdol/dates.git
git push origin master
```

- on github add new release (v1.0.0)
- On packagist Update Package
- Login to [packagist.org](https://packagist.org/)
- Submit `https://github.com/rozdol/dates`

### Ready to use in project

[](#ready-to-use-in-project)

cd to `your_project_root_dir`

```
composer require rozdol/dates:"v1.*"
```

in Table or Model or Controller

```
use Rozdol\Dates\Dates;
$this->dates = new Dates();
$date_normalized = $this->dates->F_date('01/01/20', 1); // 01.01.2020
```

#### Connecting Github to Packagist

[](#connecting-github-to-packagist)

In Github-&gt;Settings-&gt;Integrations..-&gt;Add-&gt;Packagist user: packagist user api\_key: packagist-&gt;User-&gt;Profile-&gt;Show API KEY Domain:

Test: New reslease in Github and check the version in Packagist

### Unit Tests

[](#unit-tests)

install local phpunit

```
composer require --dev phpunit/phpunit ^6
```

```
mkdir tests
cd tests
mkdir TestCase
cd TestCase
mkdir Funcs
```

edit `DatesTest.php`

`cd dates`

```
composer update rozdol/dates
```

To test

```
./vendor/bin/phpunit tests/
```

### Travis CI

[](#travis-ci)

```
git checkout -b travis
git add .travis.yml
git push origin travis
```

##### Detactach from original source

[](#detactach-from-original-source)

```
git remote -v
git remote remove origin
git remote add origin git@github.com:rozdol/dates.git
git push origin random_changes
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

3

Last Release

2891d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rozdol-dates/health.svg)

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

###  Alternatives

[snicco/better-wp-hooks

1118.6k2](/packages/snicco-better-wp-hooks)[thalidzhokov/exchange-rates-cbrf

ExchangeRatesCBRF Class to get exchange rates of the Central Bank of Russia

102.7k](/packages/thalidzhokov-exchange-rates-cbrf)

PHPackages © 2026

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