{"id":16770283,"url":"https://github.com/bowlofsoup/normalizerbundle","last_synced_at":"2026-04-10T11:04:28.108Z","repository":{"id":62496397,"uuid":"59433302","full_name":"BowlOfSoup/NormalizerBundle","owner":"BowlOfSoup","description":"Symfony Bundle for normalizing (and serializing) class properties and methods.","archived":false,"fork":false,"pushed_at":"2024-03-17T16:01:29.000Z","size":195,"stargazers_count":10,"open_issues_count":13,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-28T00:39:36.670Z","etag":null,"topics":["annotations","api","array","doctrine","doctrine-orm","normalization","normalizer","serialization","serializer","symfony","symfony-bundle","translation"],"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/BowlOfSoup.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-22T20:38:57.000Z","updated_at":"2024-01-25T12:42:48.000Z","dependencies_parsed_at":"2022-11-02T11:45:42.809Z","dependency_job_id":"acd2c2d3-2276-49ab-b5b3-3a037ddcddfb","html_url":"https://github.com/BowlOfSoup/NormalizerBundle","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/BowlOfSoup/NormalizerBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BowlOfSoup%2FNormalizerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BowlOfSoup%2FNormalizerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BowlOfSoup%2FNormalizerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BowlOfSoup%2FNormalizerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BowlOfSoup","download_url":"https://codeload.github.com/BowlOfSoup/NormalizerBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BowlOfSoup%2FNormalizerBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263715390,"owners_count":23500245,"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":["annotations","api","array","doctrine","doctrine-orm","normalization","normalizer","serialization","serializer","symfony","symfony-bundle","translation"],"created_at":"2024-10-13T06:23:35.991Z","updated_at":"2026-04-10T11:04:28.103Z","avatar_url":"https://github.com/BowlOfSoup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bowl Of Soup Normalizer\n=====\n\n[![Build Status](https://github.com/BowlOfSoup/NormalizerBundle/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/BowlOfSoup/NormalizerBundle/actions/workflows/ci.yaml)\n[![codecov](https://codecov.io/gh/BowlOfSoup/NormalizerBundle/branch/master/graph/badge.svg?token=2OW4EWvMUD)](https://codecov.io/gh/BowlOfSoup/NormalizerBundle)\n[![PHP Version](https://img.shields.io/badge/\u003e%3D8.4-blue.svg)](https://www.php.net/)\n[![Symfony Version](https://img.shields.io/badge/symfony-5.4.x-blue.svg)](https://symfony.com/)\n[![Symfony Version](https://img.shields.io/badge/symfony-6.4.x-blue.svg)](https://symfony.com/)\n[![Symfony Version](https://img.shields.io/badge/symfony-7.4.x-blue.svg)](https://symfony.com/)\n\nInstallation\n-----\n    composer require bowlofsoup/normalizer-bundle\n\nAdd the bundle to your `config/bundles.php` file\n\n    BowlOfSoup\\NormalizerBundle\\BowlOfSoupNormalizerBundle::class =\u003e ['all' =\u003e true],\n\nQuick feature overview\n-----\n- It's a Symfony bundle!\n- Normalizes class properties and methods (public, protected, private)\n- Can Serialize normalized content\n- Works with Symfony and Doctrine as its ORM. Can handle Doctrine proxies\n- Circular reference check: Handles circular reference by detecting it and returning content of the objects getId() method\n- Object caching: If a getId() method is implemented for an object, it will cache the normalized object per normalize command\n- Annotation caching, this means speed!\n    - The annotations for an object are cached. This means not parsing annotations multiple times for the same object. per flow (per normalize command)\n    - In Symfony prod mode, annotations are cached completely (after the first run)\n- Symfony translations\n    - Indicate domain (translation filename) and locale in annotations\n    - Does not support formatting with ICU MessageFormat (yet), so no parameters\n\nThe main features are described in the [documentation](https://github.com/BowlOfSoup/NormalizerBundle/wiki).\n\nDocumentation\n-----\nDocumentation on the usage and all supported options can be found [in the wiki](https://github.com/BowlOfSoup/NormalizerBundle/wiki).\n\n1. [What is serialization and normalization?](https://github.com/BowlOfSoup/NormalizerBundle/wiki/What-is-serialization-and-normalization%3F)\n2. [Installation](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Installation)\n3. [Serializing](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Serializing)\n    1. [Serialize annotations](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Serialize-annotations)\n4. [Normalizing](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Normalizing)\n    1. [Normalize annotations](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Normalize-annotations)\n5. [Translate a value](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Translate-a-value)\n    1. [Translate annotations](https://github.com/BowlOfSoup/NormalizerBundle/wiki/Translate-annotations)\n\nWhy use this normalizer and not ...\n-----\n- The Bowl Of Soup Normalizer uses an opt-in mechanism by default. You have to indicate which properties must be normalized\n- You can indicate a context group, how is the value to be normalized, in which context?\n- It's designed with speed in mind. Not packed with features for which you don't use half of it\n- It has proven itself in a complex application with 15.000+ daily end users\n\nDevelopment\n-----\nThe following CI tools can be used to check for code quality before pushing code:\n\n### Rector\nRector can be used to automate code upgrades and refactoring. Try a dry-run first!\n```bash\nvendor/bin/rector process --dry-run --no-progress-bar --ansi\n```\n\n### PHPStan\nPHPStan is a static code analysis tool that focuses on finding errors in the code.\nFixing the outcome of PHPStan prevents possible bugs and errors.\n```bash\nvendor/bin/phpstan\n```\n\n### PHPUnit\nSpeaks for itself, code should be tested. Run with coverage (output = tests/coverage):\n```bash\nXDEBUG_MODE=coverage php -dzend_extension=xdebug.so vendor/bin/phpunit \n```\nOr without coverage:\n```bash\nvendor/bin/phpunit\n```\n\n**Code coverage** `master`:\n\n\u003cimg src=\"https://codecov.io/gh/BowlOfSoup/NormalizerBundle/branch/master/graphs/sunburst.svg?token=2OW4EWvMUD\" width=\"200\"\u003e\n\n### Code style fixer\nHave php-cs-fixer automatically fix styling.\n```bash\nvendor/bin/php-cs-fixer fix\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowlofsoup%2Fnormalizerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowlofsoup%2Fnormalizerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowlofsoup%2Fnormalizerbundle/lists"}