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 yesterday

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 37% 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

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

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

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

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[io238/laravel-iso-countries

Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.

5462.3k](/packages/io238-laravel-iso-countries)

PHPackages © 2026

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