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

ActiveLibrary

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 2d 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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

### 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)
```

PHPackages © 2026

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