PHPackages                             redzjovi/fertility-calculator - 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. redzjovi/fertility-calculator

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

redzjovi/fertility-calculator
=============================

Fertility Calculator

036PHP

Since May 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/redzjovi/fertility-calculator)[ Packagist](https://packagist.org/packages/redzjovi/fertility-calculator)[ RSS](/packages/redzjovi-fertility-calculator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Synopsis
--------

[](#synopsis)

PHP fertility calculator.

Installation
------------

[](#installation)

```
composer require redzjovi/fertility-calculator

```

How to use
----------

[](#how-to-use)

```
use redzjovi\fertility\FertilityCalculator;

/**
 * example calculate('2017-12-18', 20)
 * return [
 *      '0' => [background_color => '#e9f6da', 'class_name' => ['fertile', 'fertile-check'], date' => '2017-12-18'],
 *      '1' => [background_color => '#ddefc8', 'class_name' => ['fertile', 'fertile-check'], 'date' => '2017-12-19'],
 *      '2' => [background_color => '#d4ebb8', 'class_name' => ['fertile', 'fertile-check'], 'date' => '2017-12-20'],
 *      '3' => [background_color => '#c0e496', 'class_name' => ['fertile', 'fertile-check'], 'date' => '2017-12-21'],
 *      '4' => [background_color => '#99d453', 'class_name' => ['fertile', 'fertile-love'], 'date' => '2017-12-22'],
 *      '5' => [background_color => '#c0e496', 'class_name' => ['fertile', 'fertile-check'], 'date' => '2017-12-23'],
 * ];

 * @param date $lastPeriod
 * @param integer $lengthCycle
 * @return array $dates
 */
$fertilicyCalculator = new FertilityCalculator();
$dates = $fertilicyCalculator->calculate(date('Y-m-d'), 25);

var_dump($track);

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/83a398c6cd990b89e043326de27ac6807137e2e952069f9751ab57aa08ae4c10?d=identicon)[redzjovi](/maintainers/redzjovi)

---

Top Contributors

[![redzjovi](https://avatars.githubusercontent.com/u/18608616?v=4)](https://github.com/redzjovi "redzjovi (11 commits)")

### Embed Badge

![Health badge](/badges/redzjovi-fertility-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/redzjovi-fertility-calculator/health.svg)](https://phpackages.com/packages/redzjovi-fertility-calculator)
```

###  Alternatives

[overtrue/laravel-emoji

An emojione bridge for Laravel.

15045.4k3](/packages/overtrue-laravel-emoji)[sivka/paginator

bootstrap-4 fork of jasongrimes/php-paginator, a lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses.

141.4k](/packages/sivka-paginator)

PHPackages © 2026

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