Download the PHP package fom/module-setup-fixtures without Composer

On this page you can find all versions of the php package fom/module-setup-fixtures. 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 module-setup-fixtures

FriendsOfMagento Setup Fixtures

A repeatable, hash-based fixture import engine for Magento 2 and Mage-OS.

SetupFixtures lets you keep entity content (CMS pages, blocks, and - through adapters - any other Magento entity) in version-controlled fixture files that are re-evaluated on every bin/magento setup:upgrade. Instead of writing a growing chain of one-shot data patches (CreateHomePageV1, CreateHomePageV2, …), you edit a JSON/HTML fixture and the engine applies only what actually changed, while preserving manual admin edits to fields you did not touch.

This is the core engine. It ships no fixtures and no entity types of its own - entity support is added by small adapter modules:

Module Role Repository
SetupFixtures (this module) Generic engine: loading, hashing, change detection, state, CLI module-setup-fixtures
SetupFixturesCms CMS page & block adapter module-setup-fixtures-cms
SetupFixturesCmsHyvaTailwindJit Hyvä Tailwind JIT CSS extension for CMS fixtures module-setup-fixtures-cms-hyva-tailwind-jit
SetupFixturesEmail Database email template adapter module-setup-fixtures-email
SetupFixtures Suite Metapackage bundling the engine and standard adapters module-setup-fixtures-suite

Why fixture-based deployment

Supported versions

The matrix is current as of 2026-08-23. Magento 2.4.4–2.4.6 are not supported because this package does not target PHP 8.1.

Each Magento row was verified with Adobe's non-cumulative July and August 2026 isolated CE patches applied in sequence. These patches do not change the Composer component versions shown in the table.

Magento PHP
2.4.7 8.2, 8.3
2.4.8 8.3, 8.4
2.4.9 8.5

Composer uses bounded component API families (^103.0.7 and ^101.1.7) so compatible patch releases resolve automatically while the root Magento metapackage controls the exact security patch. Review the Adobe system requirements, release schedule, and versioning policy when a Magento release line is added or retired.

Mage-OS

Mage-OS PHP Magento base
3.4.0 8.3, 8.4, 8.5 2.4.9

Mage-OS 3.4 replaces magento/framework:103.0.9 and magento/module-store:101.1.9, so the existing Magento component constraints support both distributions without duplicate alternatives. Mage-OS supports only its latest release branch; review its release policy and system requirements when this matrix is updated.

Installation

Install via Composer:

In most projects you install an adapter (e.g. fom/module-setup-fixtures-cms) instead, which pulls this engine in as a dependency.

The importer is implemented as Setup/RecurringData, so it runs on every setup:upgrade - there is nothing to schedule and no version to bump.

How it works (at a glance)

Each entity type is a thin configuration over the generic Model\Installer\Installer, wired as a DI virtualType. See docs/architecture.md for the full flow.

Quick start (consuming the engine)

A consumer module ships fixture files and registers their file IDs. The Fom_SetupFixturesCmsData example does exactly this on top of the CMS adapter:

etc/di.xml injects the fixture file ID into the CMS page installer:

Then run bin/magento setup:upgrade. See module-setup-fixtures-cms for the full CMS fixture format.

CLI commands

Command Purpose
bin/magento setup:fixtures:generate Interactively generate a JSON stub from a registered entity type and its managed fields.
bin/magento setup:fixtures:validate Validate every registered fixture without touching the database.
bin/magento setup:fixtures:status Show, per entity key, which fields are unchanged / changed / missing-state.
bin/magento setup:fixtures:import Import outside of setup:upgrade (supports --dry-run, --entity-type, --entity-key, --force).
bin/magento setup:fixtures:state-reset Delete stored state rows to force a clean re-import.

Full reference: docs/cli-commands.md.

Extending the engine

The engine is entity-agnostic. To support a new Magento entity you provide an EntityPersisterInterface, a managed-field provider, a key resolver, and register a Installer virtualType in the InstallerPool - no changes to this module.

Documentation

Related modules

License

Licensed under the Open Software License 3.0 (OSL-3.0).


All versions of module-setup-fixtures with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
magento/framework Version ^103.0.7
magento/module-store Version ^101.1.7
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 fom/module-setup-fixtures contains the following files

Loading the files please wait ...