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(2y ago)249.0k↓100%4[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 today

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 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

1056d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/277d5447bceb34b60c843d296e89ddc99469a2c57672e41082d154f86c7d134e?d=identicon)[rtuin](/maintainers/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

[thunderer/serializard

Flexible serializer

2767.1k1](/packages/thunderer-serializard)[type-lang/mapper

Library for mapping variable types to other types

345.3k](/packages/type-lang-mapper)

PHPackages © 2026

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