PHPackages                             rtuin/carbon-normalizer - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. rtuin/carbon-normalizer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

rtuin/carbon-normalizer
=======================

Normalizes to (and from) Carbon and native DateTime objects

v0.2.0(3y ago)249.0k4[1 PRs](https://github.com/rtuin/carbon-normalizer/pulls)MITPHP

Since Nov 23Pushed 2y agoCompare

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

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

Carbon+DateTime Normalizer
==========================

[](#carbondatetime-normalizer)

This is a Normalizer for the Symfony Serializer package that supports normalizing to and from `Carbon`, `CarbonImmutable`, `Illuminate\Support\Carbon`, `DateTime` and `DateTimeImmutable`.

Usage example
-------------

[](#usage-example)

```
$normalizer = new \Rtuin\Normalizer\CarbonDateTimeNormalizer();

$normalized = $normalizer->normalize(\Carbon\CarbonImmutable::now());
// $normalized is now a string '2019-05-28T07:25:00+02:00'

$result = $normalizer->denormalize('2019-05-28T07:25:00+02:00', CarbonImmutable::class);
// $result is now a CarbonImmutable instance
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Total

4

Last Release

1148d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/360150?v=4)[Richard Tuin](/maintainers/rtuin)[@rtuin](https://github.com/rtuin)

---

Top Contributors

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

---

Tags

carboncomponentjsonphpserializersymfonysymfony-componentnormalizersymfonyserializercarbon

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[api-platform/symfony

Symfony API Platform integration

354.0M110](/packages/api-platform-symfony)[api-platform/serializer

API Platform core Serializer

244.3M71](/packages/api-platform-serializer)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M462](/packages/pimcore-pimcore)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51090.8k2](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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