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

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

cjrasmussen/time
================

Simple functions for time manipulation

1.1.0(3y ago)043MITPHPPHP &gt;=7.1.0

Since Sep 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/cjrasmussen/Time)[ Packagist](https://packagist.org/packages/cjrasmussen/time)[ Docs](https://cjr.dev)[ RSS](/packages/cjrasmussen-time/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Time
====

[](#time)

Simple functions for time conversions.

Usage
-----

[](#usage)

```
use cjrasmussen\Time\Convert;

$time = Convert::secondsToTime(153);
echo $time; // 00:02:33

$seconds = Convert::timeToSeconds('01:45:32');
echo $seconds; // 6332
```

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

[](#installation)

Simply add a dependency on cjrasmussen/time to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/time
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

Time is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~982 days

Total

2

Last Release

1176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

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

---

Tags

timeseconds

### Embed Badge

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

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

###  Alternatives

[symfony/clock

Decouples applications from the system clock

432219.5M501](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6329.7M60](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.9M27](/packages/league-period)[khill/php-duration

Converts between colon formatted time, human-readable time and seconds

1571.8M23](/packages/khill-php-duration)[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8291.4M10](/packages/wapmorgan-morphos)[brick/date-time

Date and time library

3614.0M124](/packages/brick-date-time)

PHPackages © 2026

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