{"id":15021800,"url":"https://github.com/invis1ble/symfony-serializer-extension","last_synced_at":"2026-02-08T20:10:47.985Z","repository":{"id":242428091,"uuid":"809492223","full_name":"Invis1ble/symfony-serializer-extension","owner":"Invis1ble","description":"A useful set of additional (de)normalizers for symfony/serializer","archived":false,"fork":false,"pushed_at":"2024-06-06T14:06:36.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T19:02:12.435Z","etag":null,"topics":["denormalizer","deserializer","extension","normalizer","psr","serializer","symfony","uri","uriinterface"],"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/Invis1ble.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":"2024-06-02T20:51:04.000Z","updated_at":"2024-06-05T02:13:34.000Z","dependencies_parsed_at":"2024-06-05T01:41:37.082Z","dependency_job_id":"44a986fa-b83a-449a-aac1-0728b62380dd","html_url":"https://github.com/Invis1ble/symfony-serializer-extension","commit_stats":null,"previous_names":["invis1ble/symfony-serializer-extension"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Invis1ble/symfony-serializer-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invis1ble%2Fsymfony-serializer-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invis1ble%2Fsymfony-serializer-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invis1ble%2Fsymfony-serializer-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invis1ble%2Fsymfony-serializer-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Invis1ble","download_url":"https://codeload.github.com/Invis1ble/symfony-serializer-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invis1ble%2Fsymfony-serializer-extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269185726,"owners_count":24374634,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["denormalizer","deserializer","extension","normalizer","psr","serializer","symfony","uri","uriinterface"],"created_at":"2024-09-24T19:57:05.027Z","updated_at":"2026-02-08T20:10:47.942Z","avatar_url":"https://github.com/Invis1ble.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Symfony Serializer Extension\n============================\n\n![CI Status](https://github.com/Invis1ble/symfony-serializer-extension/actions/workflows/ci.yml/badge.svg?event=push)\n[![Code Coverage](https://codecov.io/gh/Invis1ble/symfony-serializer-extension/graph/badge.svg?token=AQRIP417A4)](https://codecov.io/gh/Invis1ble/symfony-serializer-extension)\n[![Packagist](https://img.shields.io/packagist/v/Invis1ble/symfony-serializer-extension.svg)](https://packagist.org/packages/Invis1ble/symfony-serializer-extension)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n\nA useful set of additional (de)normalizers for [symfony/serializer](https://github.com/symfony/serializer):\n\n- `UriNormalizer` for normalizing objects implementing `Psr\\Http\\Message\\UriInterface`\n\nInstallation\n------------\n\nTo install this package, you can use Composer:\n\n```sh\ncomposer require invis1ble/symfony-serializer-extension\n```\n\nor just add it as a dependency in your `composer.json` file:\n\n```json\n\n{\n    \"require\": {\n        \"invis1ble/symfony-serializer-extension\": \"^1.0\"\n    }\n}\n```\n\nAfter adding the above line, run the following command to install the package:\n\n```sh\ncomposer install\n```\n\n\nUsage\n-----------\n\nCurrently implemented `UriNormalizer` only.\n\nThis normalizer is designed for normalizing `Uri` objects implementing the `Psr\\Http\\Message\\UriInterface`.\n\nRead the official [documentation for the Serializer](https://symfony.com/doc/current/components/serializer.html#usage) component to use normalizers.\n\n```php\nuse Invis1ble\\SymfonySerializerExtension\\Normalizer\\UriNormalizer;\nuse Symfony\\Component\\Serializer\\Encoder\\JsonEncoder;\nuse Symfony\\Component\\Serializer\\Encoder\\XmlEncoder;\nuse Symfony\\Component\\Serializer\\Serializer;\n\n$encoders = [new XmlEncoder(), new JsonEncoder()];\n$normalizers = [new UriNormalizer($uriFactory)];\n\n$serializer = new Serializer($normalizers, $encoders);\n```\n\n\nDevelopment\n-----------\n\n### Getting started\n\n1. If not already done, [install Docker Compose](https://docs.docker.com/compose/install/) (v2.10+)\n2. Run `docker compose build --no-cache` to build fresh images\n3. Run `docker compose up -d --wait` to start the Docker containers\n4. Run `docker compose exec php composer install` to install dependencies\n5. Run `docker compose down --remove-orphans` to stop the Docker containers.\n\n### Check for Coding Standards violations\n\nRun PHP_CodeSniffer checks:\n\n```sh\ndocker compose exec -it php bin/php_codesniffer\n```\n\nRun PHP-CS-Fixer checks:\n\n```sh\ndocker compose exec -it php bin/php-cs-fixer\n```\n\nRun Rector checks:\n\n```sh\ndocker compose exec -it php bin/rector\n```\n\n\nTesting\n-------\n\nTo run Unit tests during development\n\n```sh\ndocker compose exec php vendor/bin/phpunit\n```\n\nTo run with coverage\n\n```sh\nXDEBUG_MODE=coverage docker compose up -d --wait\ndocker compose exec php vendor/bin/phpunit --coverage-clover var/log/coverage-clover.xml\n```\n\n\nLicense\n-------\n\n[The MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvis1ble%2Fsymfony-serializer-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvis1ble%2Fsymfony-serializer-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvis1ble%2Fsymfony-serializer-extension/lists"}