PHPackages                             cino/laravel-chronos - 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. [Database &amp; ORM](/categories/database)
4. /
5. cino/laravel-chronos

ActiveLibrary[Database &amp; ORM](/categories/database)

cino/laravel-chronos
====================

Replaces Carbon in Laravel by CakePHP's Chronos library

v1.1.0(6y ago)912MITPHPPHP ^7.2CI failing

Since Apr 3Pushed 6y ago2 watchersCompare

[ Source](https://github.com/cino/laravel-chronos)[ Packagist](https://packagist.org/packages/cino/laravel-chronos)[ RSS](/packages/cino-laravel-chronos/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Chronos
===============

[](#laravel-chronos)

[![Build Status](https://github.com/cino/laravel-chronos/workflows/LaravelChronos/badge.svg)](https://github.com/cino/laravel-chronos/actions)[![Code Coverage](https://camo.githubusercontent.com/b27bbea927f5c831692f45d4d7184bc850105a418acd87d440170a30d22c806f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63696e6f2f6c61726176656c2d6368726f6e6f732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cino/laravel-chronos/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f1448b956ac93f87005a4ee8e8fb1cf8f13d211b899eaeb2098c321c331226e4/68747470733a2f2f706f7365722e707567782e6f72672f63696e6f2f6c61726176656c2d6368726f6e6f732f6c6963656e7365)](https://poser.pugx.org/cino/laravel-chronos/license)

This package is for enabling the usage of Chronos in Laravel, this will not cover all cases but at least gives you Chronos instances in favor of Carbon, most of the time. (You'll see that in the Laravel source there are enough cases where it calls Carbon directly.)

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

[](#installation)

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require cino/laravel-chronos
```

Usage
-----

[](#usage)

There are now 2 options to add this behaviour to your models. Either of the options will override functions to return a Chronos object instead of a Carbon object, the first and preferred option is to use the Chronos trait from \\Cino\\LaravelChronos\\Eloquent\\Chronos like below:

### Trait

[](#trait)

```
use Cino\LaravelChronos\Eloquent\Chronos;
use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    use Chronos;
}
```

### Extending model

[](#extending-model)

The second option is to change your models to extend the Model class from \\Cino\\LaravelChronos\\Eloquent\\Model which actually also uses the trait from above.

```
use Cino\LaravelChronos\Eloquent\Model;

class MyModel extends Model
{

}
```

License
-------

[](#license)

This open-source software is licenced under the [MIT license](LICENSE.md).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2272d ago

### Community

Maintainers

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

---

Top Contributors

[![cino](https://avatars.githubusercontent.com/u/2735602?v=4)](https://github.com/cino "cino (33 commits)")

---

Tags

laravellumeneloquentdatecarbonchronoscarbon-replacement

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cino-laravel-chronos/health.svg)

```
[![Health](https://phpackages.com/badges/cino-laravel-chronos/health.svg)](https://phpackages.com/packages/cino-laravel-chronos)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k332.0k1](/packages/cybercog-laravel-love)

PHPackages © 2026

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