PHPackages                             evgenijfaustov/debug-snapshot-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. evgenijfaustov/debug-snapshot-bundle

ActiveSymfony-bundle[Debugging &amp; Profiling](/categories/debugging)

evgenijfaustov/debug-snapshot-bundle
====================================

Debug Snapshot Feature

v0.2.1(3mo ago)07proprietaryPHPPHP ^8.3

Since Jan 29Pushed 3mo agoCompare

[ Source](https://github.com/eugenfaust/debug-snapshot-bundle)[ Packagist](https://packagist.org/packages/evgenijfaustov/debug-snapshot-bundle)[ RSS](/packages/evgenijfaustov-debug-snapshot-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (7)Used By (0)

Debug Snapshot Bundle
=====================

[](#debug-snapshot-bundle)

Symfony bundle for exporting and importing Doctrine ORM aggregates as a debug snapshot ZIP.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Symfony 7.1+
- Doctrine ORM 2.17+ or 3.x

Installation
------------

[](#installation)

```
composer require evgenijfaustov/debug-snapshot-bundle
```

If the bundle was not registered automatically, add it to config/bundles.php:

```
Evgenijfaustov\DebugSnapshotBundle\DebugSnapshotBundle::class => ['all' => true],

```

Configuration
-------------

[](#configuration)

```
debug_snapshot:
  enabled: true
  http:
    enabled: false
    role: ROLE_DEBUG_SNAPSHOT
  profiles:
    order:
      root_class: App\Entity\Order
      max_depth: 3
      max_nodes: 5000
      include:
        App\Entity\Order: [customer, items]
        App\Entity\Customer: []
        App\Entity\OrderItem: []
      pii_fields:
        App\Entity\Customer: [email, phone]
```

include rules
-------------

[](#include-rules)

include is an allowlist of Doctrine associations to traverse per entity class.

If a class is present in include with \[\], no relations are traversed for that class.

Relations not listed in include are not exported.

Export
------

[](#export)

```
php bin/console debug:snapshot:export order  --out=var/snapshots --anonymize=1
```

Import
------

[](#import)

```
php bin/console debug:snapshot:import var/snapshots/.zip
```

HTTP endpoints
--------------

[](#http-endpoints)

Enable routes and role-based access in your app:

```
# config/routes/debug_snapshot.yaml
debug_snapshot:
  resource: '@DebugSnapshotBundle/Resources/config/routes.php'
```

```
# config/packages/debug_snapshot.yaml
debug_snapshot:
  http:
    enabled: true
    role: ROLE_DEBUG_SNAPSHOT
```

Export (returns zip):

```
curl -X POST "https://example.test/_debug/snapshot/export/order/?anonymize=1" -o snapshot.zip
```

Import:

```
curl -X POST "https://example.test/_debug/snapshot/import?anonymize=1" -F "snapshot=@snapshot.zip"
```

Snapshot format (v1)
--------------------

[](#snapshot-format-v1)

- meta.json contains format, createdAt, profile, root, checksum
- snapshot.json contains format, root, entities with fields and relations

Notes
-----

[](#notes)

- Composite identifiers are not supported.
- Only scalar fields are exported; relations are stored as references.
- PII masking is applied when `--anonymize=1` is passed.

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance87

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

95d ago

PHP version history (2 changes)v0.1.0PHP ^8.2

v0.1.1PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f4368fd097a22eccbc106dc4e8d13521857fbfd0e3658d036bb0c80a77d48c8?d=identicon)[eugenfaust](/maintainers/eugenfaust)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/evgenijfaustov-debug-snapshot-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evgenijfaustov-debug-snapshot-bundle/health.svg)](https://phpackages.com/packages/evgenijfaustov-debug-snapshot-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
