PHPackages                             cyve/time - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cyve/time

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cyve/time
=========

Time provider

2.0.1(1y ago)0337MITPHPPHP &gt;=7.4

Since Dec 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cyve/time)[ Packagist](https://packagist.org/packages/cyve/time)[ RSS](/packages/cyve-time/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

cyve/time
=========

[](#cyvetime)

Time provider

Installation
------------

[](#installation)

```
composer require cyve/time
```

Usage
-----

[](#usage)

```
$datetime = Time::datetime('2021-01-01', new DateTimeZone('UTC')); // return instance of DateTime
$now = Time::now();
$today = Time::today();
$today = Time::tomorrow();
$today = Time::yesterday();

Time::setTimestamp(946684800);
echo Time::now()->format('Y-m-d H:i:s'); // 2000-01-01 00:00:00
echo Time::now(new \DateTimeZone('Europe/Paris'))->format('Y-m-d H:i:s'); // 2000-01-01 01:00:00
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~655 days

Total

4

Last Release

728d ago

Major Versions

1.1 → 2.02021-12-09

PHP version history (2 changes)1.0PHP &gt;=7.0

2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b21e3a5729c9b41d7073f00fff6b65cbfd86baa158ff415a2ee71c0da22af5b1?d=identicon)[cyve](/maintainers/cyve)

---

Top Contributors

[![cyve](https://avatars.githubusercontent.com/u/3588995?v=4)](https://github.com/cyve "cyve (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cyve-time/health.svg)

```
[![Health](https://phpackages.com/badges/cyve-time/health.svg)](https://phpackages.com/packages/cyve-time)
```

###  Alternatives

[pclzip/pclzip

A PHP library that offers compression and extraction functions for Zip formatted archives

19412.9M4](/packages/pclzip-pclzip)[rilwis/meta-box

The most powerful &amp; comprehensive plugin to create, manage, show and connect dynamic data with forms and custom fields effortlessly on WordPress.

1.2k1.8k1](/packages/rilwis-meta-box)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
