library now
A php 7 class that can return the current time as well as an interface, that can be mocked for unit tests.
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
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)
Bastian Fenske bastian.fenske@tueena.org, (*6)
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
The Development Requires
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
The Development Requires
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
The Development Requires
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
The Development Requires