symfony/var-exporter
Provides tools to export, instantiate, hydrate, clone and lazy-load PHP objects observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 2926
- days_rel: 11
- days_push: 10
- n_releases_24m: 39
Adoption not part of the score
2098 stars · 7 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Symfony PHP component that exports any serializable PHP data structure to plain PHP code, and provides deep cloning, constructor-less instantiation/hydration, and lazy-loading proxies for PHP objects. It leverages OPcache for faster, more memory-efficient serialization than serialize() or igbinary.
Use cases
- export PHP variables to plain PHP code for caching
- serialize PHP objects faster than serialize() or igbinary
- deep-clone PHP object graphs efficiently
- instantiate objects without calling their constructors
- hydrate private, protected and readonly properties
- generate lazy-loading proxies for classes and interfaces
- store cache files that regenerate variables via require
When to choose
- you need OPcache-accelerated serialization of PHP values in cache files
- you must clone or hydrate objects while preserving serialization semantics
- you need lazy-loading decorators or native lazy objects
- you work within Symfony or a framework using Symfony components
When to avoid
- you need language-agnostic serialization formats like JSON
- you serialize data for non-PHP consumers
- you only need simple var_export-style debugging output
Facets
library · maturity stable
serialization developer-tools developer-tools programming-languages performance php cross-platform php symfony-component var-export deep-clone lazy-loading proxy opcache hydrate instantiation
6 sources
- readme: https://github.com/symfony/var-exporter · fetched 2026-08-28 · c59b0a69c822
- homepage: https://symfony.com/var-exporter · fetched 2026-08-29 · c36cb3b4901e
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/components/var_exporter.html · fetched 2026-08-29 · cfd1bc39d638
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 5bd749e2b676
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · d8584ccbba1c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/var-exporter | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="symfony/var-exporter")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem