{"id":14983823,"url":"https://github.com/rtuin/carbon-normalizer","last_synced_at":"2025-04-10T19:42:05.256Z","repository":{"id":57067992,"uuid":"430907412","full_name":"rtuin/carbon-normalizer","owner":"rtuin","description":"Normalizes to (and from) Carbon and native DateTime objects","archived":false,"fork":false,"pushed_at":"2023-08-16T12:48:26.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T17:21:16.977Z","etag":null,"topics":["carbon","component","json","php","serializer","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtuin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-11-23T00:22:42.000Z","updated_at":"2023-05-06T18:54:41.000Z","dependencies_parsed_at":"2023-09-26T10:16:50.927Z","dependency_job_id":null,"html_url":"https://github.com/rtuin/carbon-normalizer","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"2835876d7f7402246b3fdd4a6775c6b32418b08b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtuin%2Fcarbon-normalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtuin%2Fcarbon-normalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtuin%2Fcarbon-normalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtuin%2Fcarbon-normalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtuin","download_url":"https://codeload.github.com/rtuin/carbon-normalizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carbon","component","json","php","serializer","symfony","symfony-component"],"created_at":"2024-09-24T14:07:58.133Z","updated_at":"2025-04-10T19:42:05.229Z","avatar_url":"https://github.com/rtuin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Carbon+DateTime Normalizer\n=================\n\nThis is a Normalizer for the Symfony Serializer package that supports normalizing\nto and from `Carbon`, `CarbonImmutable`, `Illuminate\\Support\\Carbon`, `DateTime` and\n`DateTimeImmutable`.\n\nUsage example\n-------------\n\n```php\n$normalizer = new \\Rtuin\\Normalizer\\CarbonDateTimeNormalizer();\n\n$normalized = $normalizer-\u003enormalize(\\Carbon\\CarbonImmutable::now());\n// $normalized is now a string '2019-05-28T07:25:00+02:00'\n\n\n$result = $normalizer-\u003edenormalize('2019-05-28T07:25:00+02:00', CarbonImmutable::class);\n// $result is now a CarbonImmutable instance\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtuin%2Fcarbon-normalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtuin%2Fcarbon-normalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtuin%2Fcarbon-normalizer/lists"}