PHPackages                             danharrin/date-format-converter - 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. danharrin/date-format-converter

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

danharrin/date-format-converter
===============================

Convert token-based date formats between standards.

v0.3.1(1y ago)3222.4M—0.1%25MITPHPPHP ^7.2|^8.0

Since Feb 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/danharrin/date-format-converter)[ Packagist](https://packagist.org/packages/danharrin/date-format-converter)[ Docs](https://github.com/danharrin/date-format-converter)[ GitHub Sponsors](https://github.com/danharrin)[ RSS](/packages/danharrin-date-format-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (5)Used By (5)

 [![Package banner](https://user-images.githubusercontent.com/41773797/107574578-c4014600-6be6-11eb-8309-acca0acdd6f5.png)](https://user-images.githubusercontent.com/41773797/107574578-c4014600-6be6-11eb-8309-acca0acdd6f5.png)

This package allows you to convert token-based date formats between standards.

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

[](#installation)

You can use Composer to install this package into your application:

```
composer require danharrin/date-format-converter

```

Usage
-----

[](#usage)

Use the `convert_date_format()` method to initialise a new instance of the converter, ready to use:

```
convert_date_format('Y-m-d H:i:s')->to('day.js');
// YYYY-MM-DD HH:mm:ss

convert_date_format('Y-m-d H:i:s')->to('moment.js');
// YYYY-MM-DD HH:mm:ss
```

Need Help?
----------

[](#need-help)

🐞 If you spot a bug with this package, please [submit a detailed issue](https://github.com/danharrin/date-format-converter/issues/new), and wait for assistance.

🤔 If you have a question or feature request, please [start a new discussion](https://github.com/danharrin/date-format-converter/discussions/new).

🔐 If you discover a vulnerability within the package, please review our [security policy](https://github.com/danharrin/date-format-converter/blob/main/SECURITY.md).

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~406 days

Total

4

Last Release

704d ago

### Community

Maintainers

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

---

Top Contributors

[![danharrin](https://avatars.githubusercontent.com/u/41773797?v=4)](https://github.com/danharrin "danharrin (9 commits)")[![bnzo](https://avatars.githubusercontent.com/u/17174973?v=4)](https://github.com/bnzo "bnzo (1 commits)")

### Embed Badge

![Health badge](/badges/danharrin-date-format-converter/health.svg)

```
[![Health](https://phpackages.com/badges/danharrin-date-format-converter/health.svg)](https://phpackages.com/packages/danharrin-date-format-converter)
```

PHPackages © 2026

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