survos/dummy-bundle
最新稳定版本:2.8.1
Composer 安装命令:
composer require survos/dummy-bundle
包简介
DummyJSON-backed demo entities and data loader for Symfony applications
README 文档
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.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-07