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

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

FriendsOfMagento Setup Fixtures Email

Email template adapter for the FriendsOfMagento Setup Fixtures engine.

The module creates and updates rows in Magento's email_template storage using template_code as the unique fixture identity. Template bodies and optional styles live in sidecar files so they remain readable and reviewable.

Installation

The module registers the email_template installer type but ships no registered fixtures. A consumer module provides and registers its own fixture files.

Supported versions

Magento 2

Magento 2.4.4–2.4.6 and PHP 8.1 are not supported.

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. The root Magento metapackage controls the exact security patch.

Mage-OS

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

Mage-OS 3.4 replaces the Magento 2.4.9 framework and email component packages, so the existing direct dependency constraints support both distributions. See the Mage-OS release policy and system requirements.

Fixture format

Required JSON fields:

Field Value
template_code Unique email template name, at most 150 characters
template_subject Template subject, at most 200 characters
template_type html or text

Optional JSON fields:

Field Value
template_text_file Body sidecar override
template_styles_file CSS sidecar override
orig_template_code Original Magento template code
orig_template_variables JSON object mapping variable expressions to labels
is_legacy Boolean legacy rendering flag

The body is required. Without template_text_file, the loader uses the JSON basename with .html or .txt according to template_type.

CSS is optional. Without template_styles_file, a sibling .css file is loaded when present and otherwise remains unmanaged. An explicitly named missing CSS file fails validation. An existing empty CSS file clears previously stored styles.

Install fom/module-setup-fixtures-email-data for complete HTML and text examples registered as executable fixtures.

Register fixtures

A consumer module registers JSON fixture IDs on the email installer:

Run bin/magento setup:fixtures:validate before importing, then use bin/magento setup:fixtures:import --entity-type=email_template or bin/magento setup:upgrade.

Email templates are global. Assigning the generated numeric template ID to a store configuration path is deliberately outside this adapter.

Hyvä

No separate fixture adapter is needed for Hyvä because Hyvä uses Magento's native email_template persistence. Projects using a Hyvä storefront can install the optional hyva-themes/magento2-email-module package to restore Magento email LESS styling.

License

Licensed under the Open Software License 3.0.


All versions of module-setup-fixtures-email with dependencies

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

Loading the files please wait ...