PHPackages                             jasperalani/unix-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. jasperalani/unix-time

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

jasperalani/unix-time
=====================

Library containing presets and multipliers to generate an amount of time in seconds quickly.

1.0.0(5y ago)05MITPHP

Since Oct 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jasperalani/UnixTime)[ Packagist](https://packagist.org/packages/jasperalani/unix-time)[ RSS](/packages/jasperalani-unix-time/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

#### UnixTime

[](#unixtime)

PHP Library containing presets and multipliers to generate an amount of time in seconds quickly.

###### Version 1.0.2

[](#version-102)

#### Usage

[](#usage)

It's as easy as `new UnixTime('5m');`

```
echo new UnixTime("5m"); // five minutes: 300

$time = new UnixTime('5m', 'x3'); // fifteen minutes: 900
$time = new UnixTime('three_years', 'x2');

echo $time->time(); // time() function returns the time
$time->time(true); // specify echo argument to echo the time
echo $time->format(); // format() functions returns the current time + preset time
```

#### Todo

[](#todo)

- Create better preset system to allow of any number infront of a valid identifer ie. s for second, m for minute
- Create better multiplier system to allow for multiple mutlipliers as arguments.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2038d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[arutil/ar-php

Arabic php utilities from Khaled Al-Sham'aa's library http://ar-php.org/

1735.1k](/packages/arutil-ar-php)[villca/numeros-en-letras

Convierte cualquier número en letras con el valor correspondiente.

1337.6k](/packages/villca-numeros-en-letras)

PHPackages © 2026

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