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 3w ago

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

1131d 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

436205.7M383](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6339.5M55](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.8M24](/packages/league-period)[khill/php-duration

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

1611.8M21](/packages/khill-php-duration)[brick/date-time

Date and time library

3663.8M103](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)

PHPackages © 2026

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