Skip to content

mguinea/psr-20

Repository files navigation

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