PHPackages                             curly\_sanders/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. curly\_sanders/carbon-normalizer

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

curly\_sanders/carbon-normalizer
================================

Normalizes to (and from) Carbon and native DateTime objects

v0.3.1(1y ago)01.1k↓81.9%MITPHP

Since Mar 9Pushed 1y agoCompare

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

READMEChangelog (5)Dependencies (5)Versions (8)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

Maintenance40

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~176 days

Total

5

Last Release

501d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

normalizersymfonyserializercarbon

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/curly-sanders-carbon-normalizer/health.svg)](https://phpackages.com/packages/curly-sanders-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.

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

PHPackages © 2026

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