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

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

ruslanovich111/date-converter
=============================

Convert dates

1.1.1(3y ago)16.4k↓50%11PHPPHP ^8.0

Since Sep 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ruslanovich111/date-converter)[ Packagist](https://packagist.org/packages/ruslanovich111/date-converter)[ RSS](/packages/ruslanovich111-date-converter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (1)

Description
===========

[](#description)

The library provides extended functionality for working with dates.

- converting date rows "The 13th of Mar. 1999", "Mar. 2022" to objects.
- converting date rows in different languages "8 März 2023"
- converting date intervals "13th of Mar. 1999 - 8 März 2023"
- converting date sequences "The 12th of April 2022; 8 März 2023"
- search dates in a text in your language...

The library solves all these problems.

Versions
========

[](#versions)

- There is code for php8.1 in the master branch (tags 1.0.\*)
- There is code for php8.0 in the master-php8.0 branch (tags 1.1.\*)

Configuration
=============

[](#configuration)

Create `ArrayPatternStorage`.
The object takes config array of a strictly defined format:

- The `patterns` field should contain regular expressions for dates.
- The `months` field should contain regular expressions for months. There should be exactly 12 of them.

```
