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(6mo ago)07proprietaryPHPPHP ^8.3

Since Jan 29Pushed 6mo 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 1w 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

31

—

LowBetter than 65% of packages

Maintenance67

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

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

195d ago

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

v0.1.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/108708484?v=4)[eugenfaust](/maintainers/eugenfaust)[@eugenfaust](https://github.com/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.5k6.0M777](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9626.1k68](/packages/open-dxp-opendxp)[sulu/sulu

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

1.3k1.4M235](/packages/sulu-sulu)

PHPackages © 2026

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