PHPackages                             lee/carbon-extended - 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. lee/carbon-extended

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

lee/carbon-extended
===================

A extended date time format helper for Carbon

v1.0(6y ago)421[8 issues](https://github.com/peter279k/carbon-extended/issues)MITPHPPHP &gt;=7.2CI failing

Since Feb 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/peter279k/carbon-extended)[ Packagist](https://packagist.org/packages/lee/carbon-extended)[ Docs](https://github.com/peter279k/carbon-extended)[ RSS](/packages/lee-carbon-extended/feed)WikiDiscussions master Synced 3d ago

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

carbon-extended
===============

[](#carbon-extended)

[![Build Status](https://camo.githubusercontent.com/44cc9daa201f250a435c48ed04e12fe1853e506e8a0f3a6514306ce6958135a5/68747470733a2f2f7472617669732d63692e6f72672f70657465723237396b2f636172626f6e2d657874656e6465642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/peter279k/carbon-extended)[![Coverage Status](https://camo.githubusercontent.com/e01746f81db75b366a7b6bcd6faa4f6443e2c328755926af1270ca211814dfe2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70657465723237396b2f636172626f6e2d657874656e6465642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/peter279k/carbon-extended?branch=master)[![StyleCI](https://camo.githubusercontent.com/d3bf5e2f9b94fa39af61c879819760b80295cc8295bd74c33aef2d0379fc8efc/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3234313639333334342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/241693344)

Introduction
------------

[](#introduction)

- It can use some extended format on `Carbon::format` method

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

[](#installation)

Using the `composer` to install this package

```
composer require lee/carbon-extended:^1.0
```

Usage
-----

[](#usage)

- The `CarbonExtended` class extends `Carbon` and it can use `createFromFormat` to create the `Carbon` class instance and do format with extended foramts.

```
use Lee\CarbonExtended;

$date = '2013-03-17';
$customizedFormat = 'QTR.';

$carbonExtended = CarbonExtended::createFromFormat('Y-m-d', $date);
$result = $carbonExtended->extendedFormat($customizedFormat); // 1
```

Available extended date formats
-------------------------------

[](#available-extended-date-formats)

- The customized format name is refer on SAS date format
- Here are available extended formats: (it will have more customized formats...)

customized format namereferencesQTR.[QTR. reference](https://documentation.sas.com/?docsetId=leforinforref&docsetTarget=n0mupey76zmd4sn15y96a03lrumz.htm&docsetVersion=1.0&locale=en)QTRR.[QTRR. reference](https://documentation.sas.com/?docsetId=leforinforref&docsetTarget=p1tme300o05i9gn1lj4b25uxln45.htm&docsetVersion=3.2&locale=en)JULDAY3.[JULDAY3. reference](https://documentation.sas.com/?docsetId=leforinforref&docsetTarget=p0rzo1ok9zk0x4n1oz50uf9a5jle.htm&docsetVersion=1.0&locale=en)SAS\_DATE\_VALUE[SAS\_DATE\_VALUE reference](https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm)JULIAN5.[JULIAN5. reference](https://documentation.sas.com/?docsetId=leforinforref&docsetTarget=p0f7u4z8iuaoygn183i6q1yc49xb.htm&docsetVersion=3.1&locale=en)JULIAN7.[JULIAN7. reference](https://documentation.sas.com/?docsetId=leforinforref&docsetTarget=p0f7u4z8iuaoygn183i6q1yc49xb.htm&docsetVersion=3.1&locale=en)PDJULG4.[PDJULG4. reference](https://documentation.sas.com/?docsetId=leforinforref&docsetTarget=n1gtaebcye6hpan1g6lcq2bj6580.htm&docsetVersion=1.0&locale=en)TIMEAMPM.[TIMEAMPM. reference](https://documentation.sas.com/?docsetId=ds2ref&docsetTarget=n0cvz66cg3fw2xn1uhrmwa6xmbb8.htm&docsetVersion=3.1&locale=en)References
----------

[](#references)

[SAS date documentation](https://documentation.sas.com/?docsetId=lrcon&docsetTarget=p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&docsetVersion=9.4&locale=en#n1franwnd7n7yrn1kasbprbtzroo)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2276d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

carbondatedate-formatphp7time-format

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[intervention/zodiac

Zodiac Sign Calculator

58191.7k](/packages/intervention-zodiac)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[solspace/craft-calendar

The most powerful event management and calendaring plugin!

1830.8k1](/packages/solspace-craft-calendar)

PHPackages © 2026

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