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(2y ago)039MITPHPPHP &gt;=7.1.0

Since Sep 18Pushed 2y 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 6d 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

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

430168.9M205](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6308.9M39](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[khill/php-duration

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

1611.7M20](/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.

8351.3M7](/packages/wapmorgan-morphos)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)

PHPackages © 2026

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