{"id":26714984,"url":"https://github.com/tarlepp/symfony-serializer-example","last_synced_at":"2026-04-27T12:03:28.963Z","repository":{"id":191199874,"uuid":"684133937","full_name":"tarlepp/symfony-serializer-example","owner":"tarlepp","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-03T02:55:48.000Z","size":65,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:51:39.092Z","etag":null,"topics":["community-help","example","serializer","symfony"],"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/tarlepp.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":"2023-08-28T14:23:24.000Z","updated_at":"2023-08-28T14:29:25.000Z","dependencies_parsed_at":"2023-08-28T19:15:54.041Z","dependency_job_id":"59c6e66f-dd60-45b2-b925-ee0bc9194171","html_url":"https://github.com/tarlepp/symfony-serializer-example","commit_stats":null,"previous_names":["tarlepp/symfony-serializer-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarlepp/symfony-serializer-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsymfony-serializer-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsymfony-serializer-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsymfony-serializer-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsymfony-serializer-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarlepp","download_url":"https://codeload.github.com/tarlepp/symfony-serializer-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsymfony-serializer-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["community-help","example","serializer","symfony"],"created_at":"2025-03-27T13:51:41.802Z","updated_at":"2026-04-27T12:03:28.943Z","avatar_url":"https://github.com/tarlepp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nJust a quick demo how to use Symfony `Serializer` component.\n\n## Question\n\nSomeone asked following on Symfony Slack workspace;\n\n\u003e Hello,\n\u003e I've request body as following:\n\u003e ```\n\u003e {\n\u003e    \"name\": \"David\",\n\u003e    \"siblings\": [\n\u003e        {\n\u003e             \"name\": \"Brother's Name\"\n\u003e        }\n\u003e    ]\n\u003e }\n\u003e ```\n\u003e How do I make Serializer to serialize \"siblings\" as SiblingDto ?\n\u003e This array-of-object serialization is seem to not be working, can't find anything on symfony doc\n\nSo this repository contains simple example how to make that happen.\n\n## TL;DR\n\n* You need to install `phpdocumentor/reflection-docblock`\n\nOR\n\n* You need to implement \"add\" methods to your classes\n\nOR\n\n* Use `composer require symfony/serializer-pack` if you're using Symfony framework\n\n_IF_ you're using docblock annotations in your DTOs.\n\n## Installation\n\n1. Clone this repository\n2. Run `composer install`\n3. Run `symfony serve`\n4. Open shown URL with your browser\n5. Profit\n\n## Authors\n\n* [Tarmo Leppänen](https://github.com/tarlepp)\n\n## License\n\n[The MIT License (MIT)](LICENSE)\n\nCopyright © 2023 Tarmo Leppänen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarlepp%2Fsymfony-serializer-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarlepp%2Fsymfony-serializer-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarlepp%2Fsymfony-serializer-example/lists"}