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

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

tworzenieweb/cyclic-dates
=========================

A small tool library for determining the closest interval cycle to context dates

0.0.2(10y ago)0967MITPHP

Since Apr 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tworzenieweb/repetitive-date-estimator)[ Packagist](https://packagist.org/packages/tworzenieweb/cyclic-dates)[ RSS](/packages/tworzenieweb-cyclic-dates/feed)WikiDiscussions master Synced 2w ago

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

[![Build Status](https://camo.githubusercontent.com/e6581685ce4897d59358bf0d94f4df21921e46334d08e64322b5428a0cd16ec1/68747470733a2f2f7472617669732d63692e6f72672f74776f727a656e69657765622f726570657469746976652d646174652d657374696d61746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tworzenieweb/repetitive-date-estimator)[![Code Climate](https://camo.githubusercontent.com/5e2be4cb5ebfeef309b99f317c7d04323be69fcc5a54235214cb6ff5c253694d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f74776f727a656e69657765622f726570657469746976652d646174652d657374696d61746f722f6261646765732f6770612e737667)](https://codeclimate.com/github/tworzenieweb/repetitive-date-estimator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/07b6b546fe0cb79a70af8900e9cf345155ab86f60e8449794c31b5d9e88e619e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74776f727a656e69657765622f726570657469746976652d646174652d657374696d61746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tworzenieweb/repetitive-date-estimator/?branch=master)

Repetitive Date Estimator
=========================

[](#repetitive-date-estimator)

Small project to help estimating events that occurs every month on specific timeframe.

So 2 weeks interval means that it should be estimated for every 15-th and 29-th day of the month Every 1 week interval means that it should be estimated for every 8-th 15-th 22-th and 29-th of the month.

Of course it is a numeric parameter so it can be even every 5 days.

The goal is to have the even occurs on exactly the same days for each month.

Example usage:
==============

[](#example-usage)

```
$estimator = RepetitiveDateEstimator::build(new DateTime(), RepeatitiveInterval::twoWeeks());

```

if today is 01.01.2016 then it would produce:

```
$estimator->getNextDate(); // new DateTime('15.01.2016');
$estimator->getNextDate(); // new DateTime('29.01.2016');
$estimator->getNextDate(); // new DateTime('15.02.2016');
$estimator->getNextDate(); // new DateTime('29.02.2016');

```

if you want to use other intervals you can pass arbitrary number to RepetitiveInterval ValueObject

```
RepetitiveInterval::oneWeek(); // every 7 days starting from the first day of month
RepetitiveInterval::fromNumber(10); // every 10 days starting from the first day of month

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

2

Last Release

3723d ago

### Community

Maintainers

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

---

Top Contributors

[![tworzenieweb](https://avatars.githubusercontent.com/u/741378?v=4)](https://github.com/tworzenieweb "tworzenieweb (13 commits)")

---

Tags

datephp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[olivestudio/craft-olivemenus

A powerful menus plugin for Craft 4 built for the need of simplicity and flexibility

3919.0k1](/packages/olivestudio-craft-olivemenus)

PHPackages © 2026

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