Download the PHP package api-skeletons/zf-doctrine-data-fixture without Composer

On this page you can find all versions of the php package api-skeletons/zf-doctrine-data-fixture. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zf-doctrine-data-fixture

ZF Doctrine Data Fixture

Build status Gitter Patreon Total Downloads

This provides command line support for Doctrine Fixtures in Zend Framework 2. Often projects will have multiple sets of fixtures for different object managers or modules such as from a 3rd party API. When this is the case a tool which can run fixtures in groups is needed. Additionally dependency injection must be available to the fixtures. To accomplish these needs this module uses a Zend Service Manager configurable on a per-group basis.

Releases

The 4.x release tags support PHP 5.6 and 7.0.

The 5.x release tags support PHP 7.1 and above.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

Add this module to your application's configuration:

zf-component-installer

If you use zf-component-installer, that plugin will install zf-doctrine-data-fixture as a module for you.

Configuration

This module builds on top of Doctrine configuration. The configuration in a module which implements fixtures is:

Each group is a Zend ServiceManager configuration. This allows complete dependency injection control of your fixtures.

Listing Fixtures

List all object managers and their groups, list all groups for a given object manager, or specify object manager and group to list all fixtures for a group.

Executing Fixtures from Command Line

The <group> is required.

The default was to not append and this was constantly overridden with --append. Append is now to the default option. This is inversed with the new --do-not-append

Options:

--purge-with-truncate if specified will purge the object manager's tables before running fixtures.

--do-not-append will delete all data in the database before running fixtures.

Executing Fixtures from Code

For unit testing or other times you must run your fixtures from within code you must fetch the DataFixtureManager with build and pass the group name to the service manager then load the fixtures into the Loader manually.

Getting Help

Important Notes

History

Version 1.0 of this module grouped groups by partial object manager alias. This limited grouping of 3rd party fixtures and the flexibility of using ODM.

This module is a near complete rewrite of hounddog/doctrine-data-fixture-module. All the patterns have changed and the code was reduced. That module served me and the community well for a long time.


All versions of zf-doctrine-data-fixture with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.0
doctrine/data-fixtures Version ^1.3.0
doctrine/doctrine-module Version ^1.2.0 || ^2.1.0
zendframework/zend-modulemanager Version ^2.7.2 || ^3.0.0
zendframework/zend-eventmanager Version ^3.0.0
zendframework/zend-servicemanager Version ^3.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package api-skeletons/zf-doctrine-data-fixture contains the following files

Loading the files please wait ....