PHPackages                             sukohi/clock-label - 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. sukohi/clock-label

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

sukohi/clock-label
==================

Laravel package to manage clock labels like This Month and so on.

2.0.0(10y ago)014MITPHP

Since Mar 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/ClockLabel)[ Packagist](https://packagist.org/packages/sukohi/clock-label)[ RSS](/packages/sukohi-clock-label/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

ClockLabel
==========

[](#clocklabel)

Laravel package to manage clock labels like `This Month` and so on.
This package used to be called TimeLabel that gave us errors after using `composer require` command.

Installation
============

[](#installation)

Execute composer command.

```
composer require sukohi/clock-label:2.*

```

Set the service provider in app.php

```
'providers' => [
    ...Others...,
    Sukohi\ClockLabel\ClockLabelServiceProvider::class,
]

```

Also alias

```
'aliases' => [
    ...Others...,
    'ClockLabel'   => Sukohi\ClockLabel\Facades\ClockLabel::class
]

```

Usage
=====

[](#usage)

```
$clock_label = ClockLabel::setLabel([
    'today' => 'Today',
    'yesterday' => 'Yesterday',
    'this_month' => 'This Month',
    'last_month' => 'Last Month',
    'other' => 'M, Y'   // You need to set date format only here.
]);
$date_clocks = [
    Carbon::now(),
    Carbon::now(),
    Carbon::now()->subDay(),
    Carbon::now()->subDay(),
    Carbon::now()->subDays(2),
    Carbon::now()->subDays(4),
    Carbon::now()->subDays(4),
    Carbon::now()->subDays(5),
    Carbon::now()->subDays(10),
    Carbon::now()->subDays(20),
    Carbon::now()->subDays(50),
    Carbon::now()->subDays(150),
];

foreach($date_clocks as $dt) {

    if($clock_label->isFirst($dt)) {

        echo $clock_label->get($dt) .'';

    }

    echo $dt .'';

}

```

License
=======

[](#license)

This package is licensed under the MIT License. Copyright 2016 Sukohi Kuhoh

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3748d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-clock-label/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-clock-label/health.svg)](https://phpackages.com/packages/sukohi-clock-label)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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