68publishers/fixtures-bundle

基于 Alice 项目的 fixtures 套件。

v0.3.1 2024-08-06 00:26 UTC

README

⚠️ 警告!此包没有活跃的支持,它仅存在于作者的历史需求中。

Fixtures Bundle

A Nette bundle 用于管理 fixtures,集成了 nelmio/alicetheofidry/AliceDataFixtures 包。该套件支持 Nette 的 2.43 版本!

安装

安装 68publishers/fixtures-bundle 的最佳方式是使用 Composer

$ composer require 68publishers/fixtures-bundle

Alice 的集成

Alice 是一个 fixture 生成器,可以从 YAML、JSON 或原始 PHP 定义中填充实体或任何对象。此包还添加了 NEON 文件的解析器。

继续到集成指南 这里

AliceDataFixtures 的集成

AliceDataFixtures 包提供数据 fixtures 的持久层。仅支持的 ORM/ODM 是 Doctrine。

  • Doctrine ORM 2.5+
  • Doctrine ODM 1.2+
  • Doctrine PHPCR 1.4+

Eloquent 和 Propel 2 不支持此集成。

继续到集成指南 这里

Fixtures Bundle 的集成

Fixtures Bundle 封装了两个集成中的功能,允许你在定义的场景中运行 fixtures。

继续到集成指南 这里

贡献

在提交任何更改之前,不要忘记运行

$ vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run

$ composer run tests