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

ActiveLibrary

hylianshield/date
=================

HylianShield date business logic abstraction

2.0.0(9y ago)217[1 issues](https://github.com/HylianShield/date/issues)Apache-2.0PHPPHP ^7.0

Since Apr 17Pushed 9y ago1 watchersCompare

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

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

Introduction
============

[](#introduction)

The business logic abstraction layer for your date sensitive application.

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

[](#installation)

```
composer require hylianshield/date:^1.0
```

Usage
-----

[](#usage)

The date container is an easy to understand container that can store data alongside full-fledged instances of `DateTimeInterface`. It uses instances of `DateTimeInterface` as keys and user supplied data as corresponding value.

It achieves this by internally using the date storage entity, which stores date objects as keys with a precision determined by a date format.

### Creating a date container

[](#creating-a-date-container)

One may use the factory to create a new date container. This is the easiest approach with the least required configuration.

```
