{"id":48780638,"url":"https://github.com/symfony/polyfill-deepclone","last_synced_at":"2026-04-16T17:01:15.802Z","repository":{"id":350825540,"uuid":"1207069815","full_name":"symfony/polyfill-deepclone","owner":"symfony","description":"Symfony polyfill for the deepclone extension","archived":false,"fork":false,"pushed_at":"2026-04-14T12:09:40.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"1.x","last_synced_at":"2026-04-14T15:27:36.096Z","etag":null,"topics":["compatibility","component","deepclone","javascript","polyfill","portable","shim","symfony","symfony-component","symfony-polyfill"],"latest_commit_sha":null,"homepage":"https://symfony.com/polyfill-deepclone","language":"PHP","has_issues":false,"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/symfony.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["fabpot","nicolas-grekas"],"custom":"https://symfony.com/sponsor","tidelift":"packagist/symfony/symfony"}},"created_at":"2026-04-10T14:42:29.000Z","updated_at":"2026-04-14T12:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/symfony/polyfill-deepclone","commit_stats":null,"previous_names":["symfony/polyfill-deepclone"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/symfony/polyfill-deepclone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fpolyfill-deepclone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fpolyfill-deepclone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fpolyfill-deepclone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fpolyfill-deepclone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/polyfill-deepclone/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fpolyfill-deepclone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31848664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["compatibility","component","deepclone","javascript","polyfill","portable","shim","symfony","symfony-component","symfony-polyfill"],"created_at":"2026-04-13T14:00:49.680Z","updated_at":"2026-04-15T16:00:50.821Z","avatar_url":"https://github.com/symfony.png","language":"PHP","readme":"Symfony Polyfill / DeepClone\n============================\n\nThis package provides a pure-PHP implementation of the functions and exception\nclasses from the [deepclone extension](https://github.com/symfony/php-ext-deepclone):\n\n- `deepclone_to_array(mixed $value, ?array $allowedClasses = null): array`\n  — converts any serializable PHP value graph into a pure array (only scalars\n  and nested arrays, no objects).\n- `deepclone_from_array(array $data, ?array $allowedClasses = null): mixed`\n  — rebuilds the value graph from the array, preserving object identity,\n  references, cycles, and private property state.\n- `DeepClone\\NotInstantiableException` and `DeepClone\\ClassNotFoundException`\n\nWhen the native `deepclone` extension is loaded, this polyfill does nothing —\nthe extension provides the same functions 4–5× faster.\n\nThe array representation preserves PHP's copy-on-write for strings and scalar\narrays, making repeated cloning of a prototype significantly more memory\nefficient than `unserialize(serialize())`. It also serves as a cache-friendly\nserialization format: when dumped via `var_export()` into a `.php` file,\nOPcache maps the array into shared memory, making deserialization essentially\nfree.\n\nThis is the same wire format used by Symfony's `VarExporter\\DeepCloner`.\n\nMore information can be found in the\n[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).\n\nLicense\n=======\n\nThis library is released under the [MIT license](LICENSE).\n","funding_links":["https://github.com/sponsors/fabpot","https://github.com/sponsors/nicolas-grekas","https://symfony.com/sponsor","https://tidelift.com/funding/github/packagist/symfony/symfony"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fpolyfill-deepclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fpolyfill-deepclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fpolyfill-deepclone/lists"}