An open API service indexing awesome lists of open source software.

https://github.com/mguinea/psr-20

PSR-20 Implementation
https://github.com/mguinea/psr-20

psr-20

Last synced: 4 months ago
JSON representation

PSR-20 Implementation

Awesome Lists containing this project

README

        

# PSR-20 Implementation

[![Latest Version](https://img.shields.io/github/release/mguinea/psr-20.svg?style=flat-square)](https://github.com/mguinea/psr-20/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Tests](https://github.com/mguinea/psr-20/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/mguinea/psr-20/actions/workflows/tests.yml?query=branch%3Amain)

A PSR-20 Implementation

## Installation

```bash
composer install mguinea/psr-20
```

## Usage

### Create a clock and retrieve DateTimeImmutable

```php
now(); // $now is an instance of DateTimeImmutable
```

## Test

Run phpunit suite

```bash
./vendor/bin/phpunit tests
```