Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 785 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 785 Bytes

PSR-20 Implementation

Latest Version Software License Tests

A PSR-20 Implementation

Installation

composer install mguinea/psr-20

Usage

Create a clock and retrieve DateTimeImmutable

<?php

use Mguinea\Psr20\Clock;

$now = (new Clock())->now(); // $now is an instance of DateTimeImmutable

Test

Run phpunit suite

./vendor/bin/phpunit tests