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

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

gbetts/ancient-dates
====================

A helper to format and get info from ancient and prehistoric dates

v1.0.0(10mo ago)05MITPHPPHP ^8.2

Since Jul 7Pushed 10mo agoCompare

[ Source](https://github.com/GeorgeBetts/ancient-dates)[ Packagist](https://packagist.org/packages/gbetts/ancient-dates)[ RSS](/packages/gbetts-ancient-dates/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP Ancient Dates
=================

[](#php-ancient-dates)

A helper to format and get info from ancient and prehistoric dates for PHP.

When working with dates in code they typically follow the ISO 8601 date format (YYYY-MM-DD). This standard means BCE dates are represented with a minus sign before the year (e.g., -3000-01-01).

Typically date formatters will ignore the minus and it's up to you to format the date appropriately.

Normally, a user would expect to see these dates in a more readable format, such as `3000 BCE`, or `5025 years ago`

This package helps you convert ancient dates to these formats and provides additional information such as the geological period.

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

[](#installation)

Install the package via composer:

```
composer require gbetts/ancient-dates
```

Usage
-----

[](#usage)

Initialise your date using the `AncientDate` class

```
use Gbetts\AncientDates\AncientDate

$date = new AncientDate('-155000000-01-01T00:00:00Z');
```

The following methods are available for the date object:

```
$date->toBceString() // 155 million years BCE
$date->yearsAgo() // 155002025
$date->period() // Jurassic
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

315d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5024b9bbec83b104cfbc2aaf20af5eec67eb8a12008f471636918fcb4c311087?d=identicon)[GeorgeBetts](/maintainers/GeorgeBetts)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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