承接 survos/dummy-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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, and Comment entities with relations
  • Product, Image, and ProductReview entities
  • repository services
  • Doctrine mapping registration by the bundle
  • dummy:load command

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

![Entity Diagram](docs/er.svg)

Notes

  • dummy:load loads 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:load hard-codes the DummyJSON endpoints for now.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固