定制 oligus/doctrine-fixtures 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

oligus/doctrine-fixtures

最新稳定版本:0.1.5

Composer 安装命令:

composer require oligus/doctrine-fixtures

包简介

Doctrine fixtures

README 文档

README

Simple fixture loader for Doctrine.

Build Status License: MIT Codecov.io Maintainability

Load XML fixtures into database using entity manager.

Quick start

$ composer require oligus/doctrine-fixtures --dev

Load all fixtures in a directory

$fixture = new FixtureManager($em, new XmlLoader('path/to/fixtures'));
$fixture->loadAll();

Load a single fixture file

$fixture = new FixtureManager($em, new XmlLoader());
$fixture->loadFile('path/to/fixtures/data_table.xml');

Availible Loaders

  • Xml Loader
  • Csv Loader

Fixtures

Creating XML fixture from mysql database

$ mysqldump -h localhost -u username --password=password --xml -t database data_table --where="id='1'"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-07