68publishers / fixtures-bundle
基于 Alice 项目的 fixtures 套件。
v0.3.1
2024-08-06 00:26 UTC
Requires
- php: ^7.2 || ^8.1
- doctrine/event-manager: ^1.1 || ^2.0
- nelmio/alice: ^3.7
- nette/di: ^2.4.16 || ^3.0
- nette/finder: ^2.4 || ^3.0
- nette/utils: ^2.4.2 || ^3.0 || ^4.0
- theofidry/alice-data-fixtures: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- mockery/mockery: ^1.4
- nette/application: ^2.4 || ^3.0
- nette/tester: ^2.3
- roave/security-advisories: dev-master
Suggests
- symfony/console: For fixtures commands
- dev-master
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1
- dev-feature/excluded-tables
- dev-feature/objects
- dev-feature/interface-renaming
- dev-feature/preloaded-unique-values
- dev-feature/nested-parameters
- dev-feature/dynamic-parameters-workaround
- dev-feature/sortable-data-loader
This package is auto-updated.
Last update: 2024-09-06 01:09:58 UTC
README
⚠️ 警告!此包没有活跃的支持,它仅存在于作者的历史需求中。
Fixtures Bundle
A Nette bundle 用于管理 fixtures,集成了 nelmio/alice 和 theofidry/AliceDataFixtures 包。该套件支持 Nette 的 2.4
和 3
版本!
安装
安装 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