2017 © Pedro Peláez
 

library now

A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.

image

tueena-lib/now

A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.

  • Sunday, January 8, 2017
  • by tueena
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

tueena-lib/now

A php 7 class that returns the current time as well as an interface, that can be mocked for unit tests., (*1)

Features

  • Invoking an instance of the class returns an instance of \DateTimeImmutable.

Usage

<?php

use tueenaLib\now;

$now = new Now;
$immutableDateTimeObject = $now();

License

MIT, (*2)

Requirements

php >= 7.0.0, (*3)

Installation

If you use Composer:, (*4)

composer require tueena-lib/now

Otherwise just download the class and the interface and use it., (*5)

Contact

Bastian Fenske bastian.fenske@tueena.org, (*6)

The Versions

08/01 2017

dev-develop

dev-develop

A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/01 2017

dev-master

9999999-dev

A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/01 2017

v1.0.1

1.0.1.0

A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/01 2017

v1.0.0

1.0.0.0

A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires