PHPackages                             oneseven9955/dateparser - 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. oneseven9955/dateparser

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

oneseven9955/dateparser
=======================

DateParser is a parser that can interpret date strings in various formats.

0.1.0(1y ago)06MITPHPPHP &gt;=8.1

Since Jul 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/179955/dateparser)[ Packagist](https://packagist.org/packages/oneseven9955/dateparser)[ RSS](/packages/oneseven9955-dateparser/feed)WikiDiscussions main Synced 1mo ago

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

This PHP package is a date string parser that can interpret date strings in various formats. It is implemented using a finite state machine. With this package, developers can easily parse date strings without relying on external libraries or tools.

Getting Started
---------------

[](#getting-started)

```
use OneSeven9955\DateParser\DateParser;
use OneSeven9955\DateParser\ParseException;

// Strict parse: an invalid date string will cause ParseException
try {
    $datetime = DateParser::from('30/04/2025')->parse(); // DateTime { date: 2015-04-30 00:00:00.0 UTC (+00:00) }
} catch (ParseException $ex) {
    printf("Unable to parse the date: %s\n", $ex->getMessage());
}

// Silent parse: an invalid date string will cause null as return value
$datetimeOrNull = DateParser::from('30#04#2025')->parseSilent(); // null
```

Supported Date Formats
----------------------

[](#supported-date-formats)

The time part is being omitted.

**YYYY-MM-DD**

- 2014-04-26

**MM/DD/YY**

- 3/31/2014
- 03/31/2014
- 08/21/71
- 8/1/71

**YYYY/MM/DD**

- 2014/3/31
- 2014/03/31

**MM.DD.YY**

- 3.31.2014
- 03.31.2014
- 08.21.71
- 2014.03
- 2014.03.30

**Textual Month**

- oct 7, 1970
- oct 7, '70
- oct. 7, 1970
- oct. 7, 70
- October 7, 1970
- October 7th, 1970
- 7 oct 70
- 7 oct 1970
- 03 February 2013
- 1 July 2013
- 2013-Feb-03

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

655d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68f53cab331a02204190c288c95091a4031fce6c681a1dc6a3cc80a43e2cb4fc?d=identicon)[179955](/maintainers/179955)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oneseven9955-dateparser/health.svg)

```
[![Health](https://phpackages.com/badges/oneseven9955-dateparser/health.svg)](https://phpackages.com/packages/oneseven9955-dateparser)
```

###  Alternatives

[roave/psr-container-doctrine

Doctrine Factories for PSR-11 Containers

99776.7k19](/packages/roave-psr-container-doctrine)[wyrihaximus/json-throwable

📠 JSON encode and decode throwables and exceptions

12271.9k5](/packages/wyrihaximus-json-throwable)

PHPackages © 2026

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