survos / dummy-bundle
DummyJSON-backed demo entities and data loader for Symfony applications
Fund package maintenance!
2.7.19
2026-06-07 14:46 UTC
Requires
- php: ^8.4
- doctrine/doctrine-bundle: ^3.0
- doctrine/orm: ^3.3
- survos/jsonl-bundle: ^2.7
- symfony/cache: ^8.0
- symfony/config: ^8.0
- symfony/console: ^8.0
- symfony/dependency-injection: ^8.0
- symfony/http-kernel: ^8.0
- twig/twig: ^3.4
- dev-main
- 2.7.19
- 2.7.17
- 2.7.16
- 2.7.15
- 2.7.14
- 2.7.13
- 2.7.12
- 2.7.11
- 2.7.10
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.4
- 2.7.3
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.0
- 2.5.8
- 2.5.7
- 2.5.6
- 2.5.5
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.0.220
- 2.0.219
- 2.0.218
- 2.0.217
- 2.0.216
- 2.0.215
- 2.0.214
- 2.0.213
- 2.0.212
- 2.0.211
- 2.0.210
- 2.0.209
- 2.0.208
- 2.0.207
- 2.0.206
- 2.0.205
- 2.0.204
This package is auto-updated.
Last update: 2026-06-07 16:24:03 UTC
README
Doctrine-backed demo entities and a loader for DummyJSON data.
Current scope:
User,Post, andCommententities with relationsProduct,Image, andProductReviewentities- repository services
- Doctrine mapping registration by the bundle
dummy:loadcommand
This bundle is currently about loading demo data. It does not provide a UI.
Quickstart
Copy and paste this into a shell:
symfony new dummy-demo --webapp cd dummy-demo echo 'DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db' > .env.local composer req survos/dummy-bundle bin/console doctrine:database:create --if-not-exists bin/console doctrine:schema:update --force bin/console dummy:load --purge bin/console dbal:run-sql "select count(*) from product"
Local Path Repository
If you are developing this bundle locally from ~/sites/mono/bu/dummy-bundle, initialize the app like this instead:
symfony new dummy-demo --webapp cd dummy-demo echo 'DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db' > .env.local composer config repositories.survos-dummy path ~/sites/mono/bu/dummy-bundle composer req survos/dummy-bundle bin/console doctrine:database:create --if-not-exists bin/console doctrine:schema:update --force bin/console dummy:load --purge bin/console dbal:run-sql "select count(*) from product"
Entity Diagram
Generate the ER diagram in the demo app root:
composer req --dev jawira/doctrine-diagram-bundle mkdir -p docs bin/console doctrine:diagram:er --filename=docs/er.svg --exclude=doctrine_migration_versions,messenger_messages
Then include it in your project README with a few lines of markdown:
## Entity Diagram 
Notes
dummy:loadloads users, posts, comments, products, product reviews, and images.- It prints a final summary with how many of each entity were loaded.
- DummyJSON post comments belong to both a post and a user.
- DummyJSON product reviews are embedded on products and include reviewer name/email, not a user id.
dummy:loadhard-codes the DummyJSON endpoints for now.