{"id":23427080,"url":"https://github.com/tsantos84/serializer","last_synced_at":"2026-03-07T05:33:00.171Z","repository":{"id":57073154,"uuid":"95047896","full_name":"tsantos84/serializer","owner":"tsantos84","description":"A PHP serialization component focused on performance","archived":false,"fork":false,"pushed_at":"2020-05-28T03:51:56.000Z","size":574,"stargazers_count":28,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-02T14:57:48.016Z","etag":null,"topics":["data-transformation","php-library","php7","serialization-library"],"latest_commit_sha":null,"homepage":"https://tsantos-serializer.readthedocs.io/","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/tsantos84.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-21T21:30:14.000Z","updated_at":"2025-01-30T11:38:03.000Z","dependencies_parsed_at":"2022-08-24T10:52:11.363Z","dependency_job_id":null,"html_url":"https://github.com/tsantos84/serializer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tsantos84/serializer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsantos84%2Fserializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsantos84%2Fserializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsantos84%2Fserializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsantos84%2Fserializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsantos84","download_url":"https://codeload.github.com/tsantos84/serializer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsantos84%2Fserializer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data-transformation","php-library","php7","serialization-library"],"created_at":"2024-12-23T06:16:58.347Z","updated_at":"2026-03-07T05:33:00.133Z","avatar_url":"https://github.com/tsantos84.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TSantos Serializer\n[![Build Status](https://travis-ci.org/tsantos84/serializer.svg?branch=master)](https://travis-ci.org/tsantos84/serializer) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=tsantos84_serializer\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=tsantos84_serializer) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=tsantos84_serializer\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=tsantos84_serializer) [![Latest Stable Version](https://poser.pugx.org/tsantos/serializer/version)](https://packagist.org/packages/tsantos/serializer) [![Total Downloads](https://poser.pugx.org/tsantos/serializer/downloads)](https://packagist.org/packages/tsantos/serializer) [![Latest Unstable Version](https://poser.pugx.org/tsantos/serializer/v/unstable)](//packagist.org/packages/tsantos/serializer) [![License](https://poser.pugx.org/tsantos/serializer/license)](https://packagist.org/packages/tsantos/serializer) [![composer.lock available](https://poser.pugx.org/tsantos/serializer/composerlock)](https://packagist.org/packages/tsantos/serializer)\n\nTSantos Serializer is a library to encode/decode PHP objects to some string representation. Because of its exclusive\nserialization strategy, this library is the [faster serialization component](https://github.com/tsantos84/serializer-benchmark) to PHP.\n\n## Instalation\n\nYou can install this library through composer:\n\n`composer require tsantos/serializer`\n\nor just add `tsantos/serializer` to your composer file and then\n\n`composer update`\n\n## Usage\n\nThe best way to get start with `TSantos Serializer` is by using the builder.\nWith a few configurations you are ready to serialize your data:\n\n```php\n\nuse TSantos\\Serializer\\SerializerBuilder;\n\nclass Post {\n    public $title;\n    public $summary;\n}\n\n$serializer = (new SerializerBuilder())\n    -\u003esetHydratorDir('/path/to/generated/hydrators')\n    -\u003ebuild();\n\n$person = new Post('Post title', 'Post summary');\n\necho $serializer-\u003eserialize($person); // {\"title\":\"Post title\", \"summary\":\"Post summary\"}\n```\n\nThis is the simplest example to get you started with TSantos Serializer. There are\na lot of capabilities which you should know in order to master your serializer instance\nand take advantage of all library's power.\n\n## Features\n\nMain features currently supported by TSantos Serializer:\n\n* No need to mapping classes for simple use cases ...\n* ... but supports `YAML`, `XML` and `Annotations` mapping formats for advanced mapping\n* Supports `JSON` encoders\n* (De-)serializes objects of any depth\n* Virtual properties\n* Properties grouping\n* Event listeners to hook into serialization operations\n* (De-)serializes interfaces and abstract classes\n\n## Documentation\n\nPlease refer to the [documentation page](https://tsantos-serializer.readthedocs.io) to see all allowed configurations.\n\n## Licence\n\nMIT\n\n## Tests\n\n  `vendor/bin/phpunit -c phpunit.xml.dist`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsantos84%2Fserializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsantos84%2Fserializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsantos84%2Fserializer/lists"}