PHPackages                             rkr/date-fns - 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. rkr/date-fns

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

rkr/date-fns
============

An adaptation of js date-fns for PHP

4.1.0.2(1mo ago)871MITPHPPHP &gt;= 8.0

Since Dec 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/rkrx/php-date-fns)[ Packagist](https://packagist.org/packages/rkr/date-fns)[ RSS](/packages/rkr-date-fns/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (16)Versions (4)Used By (1)

PHP DateFns
===========

[](#php-datefns)

**PHP DateFns** is a PHP adaptation of the JavaScript [date-fns](https://date-fns.org/) toolkit (v4.1.0), bringing the same functional, immutable date utilities to PHP 8 projects. The sections below link to the generated PHP documentation for every helper.

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

[](#installation)

Install via Composer:

```
composer require rkr/date-fns
```

Quick start
-----------

[](#quick-start)

```
