PHPackages                             freshbrewedweb/php-timecode - 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. freshbrewedweb/php-timecode

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

freshbrewedweb/php-timecode
===========================

Easy management of timecodes

028PHP

Since Dec 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/greghunt/php-timecode)[ Packagist](https://packagist.org/packages/freshbrewedweb/php-timecode)[ RSS](/packages/freshbrewedweb-php-timecode/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-timecode
============

[](#php-timecode)

Easy management of timecodes

Usage
-----

[](#usage)

```
$timecode = new Timecode(1122 , 'seconds');

echo $timecode->get();
// 00:18:42.000

// Get is optional, you can just echo the object.
echo $timecode
    ->setUnits(['minutes', 'seconds', 'milliseconds'])
    ->setFormat('%02d:%02d,%02d');

// 18:42,000

echo $timecode->hours;
// 0

echo $timecode->minutes;
// 18

echo $timecode->seconds;
// 42
```

We can go the other direction too:

```
$timecode = Timecode::fromString('00:18:42.000');
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/freshbrewedweb-php-timecode/health.svg)

```
[![Health](https://phpackages.com/badges/freshbrewedweb-php-timecode/health.svg)](https://phpackages.com/packages/freshbrewedweb-php-timecode)
```

PHPackages © 2026

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