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

On this page you can find all versions of the php package api-skeletons/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 doctrine-data-fixture

Doctrine Data Fixtures with Grouping for Laminas

Build status Gitter Patreon Total Downloads

This provides command line support for Doctrine Fixtures in Laminas. 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 Service Manager configurable on a per-group basis.

Releases

The 6.x release tags support PHP 7.2 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:

laminas-component-installer

If you use laminas-component-installer, that plugin will install 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 Laminas ServiceManager configuration. This allows complete dependency injection control of your fixtures.

The 'executor' and 'purger' keys are optional and allow for custom classes for these functions. If omitted the Doctrine ORM classes will be used.

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.

Append is 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


All versions of doctrine-data-fixture with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.0 || ~8.0
doctrine/data-fixtures Version ^1.3.0
doctrine/doctrine-module Version ^2.1 || ^4.0 || ^5.0
laminas/laminas-modulemanager Version ^2.7.2 || ^3.0.0
laminas/laminas-eventmanager Version ^3.0
laminas/laminas-servicemanager Version ^3.1
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/doctrine-data-fixture contains the following files

Loading the files please wait ....