2017 © Pedro Peláez
 

library now

Pprovides current time

image

koriym/now

Pprovides current time

  • Friday, September 22, 2017
  • by koriym
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5,516 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Koriym.Now

Build Status Scrutinizer Code Quality Code Coverage, (*1)

Provide current time with NowInterface, (*2)

Usage

use namespace Koriym\Now\Now;
use namespace Koriym\Now\FakeNow;

$now = new Now;
(string) $now // 2015-11-09 01:00:00

$fakeNow = new FakeNow;
(string) $fakeNow // 1970-01-01 00:00:00 = FakeNow::Time

For Ray.Di

use namespace Koriym\Now\NowInterface;

public function configure()
{
    // prod
    $this->bind(NowInterface::class)->to(Now::class);
    // develop
    $this->bind(NowInterface::class)->to(FakeNow::class);
}

The Versions

22/09 2017

1.x-dev

1.9999999.9999999.9999999-dev

Pprovides current time

  Sources   Download

MIT

The Development Requires

now

26/01 2016

0.3.0

0.3.0.0

Pprovides current time

  Sources   Download

MIT

The Development Requires

now

26/01 2016

1.0.0

1.0.0.0

Pprovides current time

  Sources   Download

MIT

The Development Requires

now

08/12 2015

0.2.0

0.2.0.0

Pprovides current time

  Sources   Download

MIT

The Development Requires

now

09/11 2015

0.1.0

0.1.0.0

Pprovides current time

  Sources   Download

MIT

now