PHPackages                             craftplugins/carbon - 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. [Templating &amp; Views](/categories/templating)
4. /
5. craftplugins/carbon

AbandonedArchivedCraft-plugin[Templating &amp; Views](/categories/templating)

craftplugins/carbon
===================

Provides access to Carbon in Craft templates.

1.0.0(5y ago)239PHP

Since May 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/craftplugins/carbon)[ Packagist](https://packagist.org/packages/craftplugins/carbon)[ RSS](/packages/craftplugins-carbon/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Important

**This plugin is no longer maintained.**

Carbon for Craft CMS
====================

[](#carbon-for-craft-cms)

This plugin provides access to [Carbon](https://carbon.nesbot.com/) dates in Craft templates.

[![Screenshot](screenshot.png)](screenshot.png)

Usage
-----

[](#usage)

This plugin simply converts a date or string into a Carbon instance.

See the [Carbon docs](https://carbon.nesbot.com/docs/) for all the methods available.

#### Converting

[](#converting)

This plugin provides a function, a filter, and a variable for converting dates into Carbon instances.

```
{# As a function #}
{% set date = carbon(entry.postDate) %}
{% set date = carbon('3 days ago') %}

{# As a filter #}
{% set date = entry.postDate|carbon %}
{% set date = 'Last Friday'|carbon %}

{# As a variable #}
{% set date = craft.carbon.carbon(entry.postDate) %}
{% set date = craft.carbon.carbon('Saturday 5pm') %}
```

#### Examples

[](#examples)

```
{# Getters #}
{{ date.dayName }}{# Saturday #}
{{ date.locale('de').dayName }}{# Samstag #}

{# Addition #}
{{ date.addDay() }}
{{ date.addSeconds(555) }}

{# Subtraction #}
{{ date.sub('2 days') }}
{{ date.subWeek() }}

{# Difference for humans #}
{{ carbon(entry.postDate).ago() }}{# 5 days ago #}
{{ carbon(entry.postDate).locale('ja_JP').ago() }}{# 5日前 #}
{{ carbon('2020-01-01').diffForHumans('2020-02-02') }}{# 1 month before #}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2147d ago

Major Versions

0.1.0 → 1.0.02020-08-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b4e6abe7aa65213331c5aa504444397a181825459b04422bcf8ea6f9e4d1a99?d=identicon)[joshuabaker](/maintainers/joshuabaker)

---

Top Contributors

[![joshuabaker](https://avatars.githubusercontent.com/u/160484?v=4)](https://github.com/joshuabaker "joshuabaker (17 commits)")

---

Tags

carboncraft-cmscraft-plugintwigtwig-extensioncarboncmsCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/craftplugins-carbon/health.svg)

```
[![Health](https://phpackages.com/badges/craftplugins-carbon/health.svg)](https://phpackages.com/packages/craftplugins-carbon)
```

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293943.4k27](/packages/craftcms-feed-me)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.6k1](/packages/wbrowar-guide)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.5k](/packages/verbb-footnotes)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1087.5k](/packages/jalendport-craft-preparse)[verbb/color-mixer

A set of Twig filters for modifying colors.

1321.1k](/packages/verbb-color-mixer)[vierbeuter/craft-footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

212.7k](/packages/vierbeuter-craft-footnotes)

PHPackages © 2026

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