# firegento/magesetup2

> MageSetup provides the necessary configuration (system config, tax, agreements, etc. for a national market.

`composer require firegento/magesetup2`

Canonical URL: https://packagento.com/firegento/magesetup2

## At a glance

- **Vendor**: firegento (https://packagento.com/firegento.md)
- **Latest version**: 1.3.0 — released 2026-05-22
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/firegento/magesetup2 and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require firegento/magesetup2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

MageSetup provides the necessary configuration (system config, tax, agreements, etc. for a national market.

## README

FireGento_MageSetup
===================
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-24-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

MageSetup configures a shop for a national market. 

Currently supported countries are:
 
* Austria (at)
* Switzerland (ch)
* Germany (de)
* Spain (es)
* France (fr)
* United Kingdom (gb)
* Italy (it)
* Netherlands (nl)
* Poland (pl)
* Romania (ro)
* Russia (ru).

More countries to follow.

Missing your country? Please open a pull request with the necessary configuration for your country and help us support more countries.

Requirements
------------
- PHP >= 7.3
- Magento >= 2.4.3

If you are using Magento < 2.4.3, you can still use version `0.4.*`.

Installation
------------

#### Via composer (recommended)

Please go to the Magento2 root directory and run the following commands in the shell:

```
composer require firegento/magesetup2
bin/magento module:enable FireGento_MageSetup
bin/magento setup:upgrade
```

#### Manually

Please create the directory *app/code/FireGento/MageSetup* and copy the files from this repository to the created directory. Then run the following commands in the shell:

```
bin/magento module:enable FireGento_MageSetup
bin/magento setup:upgrade
```

Usage
-----

```bash
bin/magento magesetup:setup:run <country_code> <processors>
```

Parameters:
* `<country_code>` is a required argument. Please find available country codes in country list above (e.g. `de` for Germany).
* `<processors>` is an optional argument. If no processor code is given, all processors will be run.

Available processors:
* `agreements` for setting up the terms and conditions
* `cms` for setting up all required cms pages and cms blocks
* `systemConfig` for setting up base configuration values.
* `tax` for setting up the base tax rules / tax rates.

Example:

Run all processors for Germany:

```bash
bin/magento magesetup:setup:run de
```

Only run `agreements` and `cms` for Germany:

```bash
bin/magento magesetup:setup:run de agreements cms
```

Hyvä Themes
-----------

If you're using [Hyvä](https://hyva.io/) as frontend in your Magento 2 instance, please install the corresponding
compatibility module. You can find all detailed installation instructions in the compatibility module repository.

Support
-------
If you encounter any problems or bugs, please create an issue on [GitHub](https://github.com/firegento/firegento-magesetup2/issues).

Contribution
------------
Any contribution to the development of MageSetup is highly welcome. The best possibility to provide any code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

### Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tr>
    <td align="center"><a href="https://github.com/kkrieger85"><img src="https://avatars2.githubusercontent.com/u/4435523?v=4" width="100px;" alt=""/><br /><sub><b>Kevin Krieger</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=kkrieger85" title="Documentation">📖</a></td>
    <td align="center"><a href="https://frostblog.net/"><img src="https://avatars3.githubusercontent.com/u/19548641?v=4" width="100px;" alt=""/><br /><sub><b>Jens Richter</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=frostblogNet" title="Code">💻</a></td>
    <td align="center"><a href="https://rouven.io/"><img src="https://avatars3.githubusercontent.com/u/393419?v=4" width="100px;" alt=""/><br /><sub><b>Rouven Alexander Rieker</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=therouv" title="Code">💻</a></td>
    <td align="center"><a href="https://github.com/demtaric"><img src="https://avatars3.githubusercontent.com/u/5658592?v=4" width="100px;" alt=""/><br /><sub><b>demtaric</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=demtaric" title="Code">💻</a></td>
    <td align="center"><a href="https://www.simonsprankel.com/"><img src="https://avatars1.githubusercontent.com/u/930199?v=4" width="100px;" alt=""/><br /><sub><b>Simon Sprankel</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=sprankhub" title="Code">💻</a></td>
    <td align="center"><a href="https://copex.io/"><img src="https://avatars1.githubusercontent.com/u/584168?v=4" width="100px;" alt=""/><br /><sub><b>Roman Hutterer</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=roman204" title="Code">💻</a></td>
    <td align="center"><a href="http://www.integer-net.de/agentur/andreas-von-studnitz/"><img src="https://avatars1.githubusercontent.com/u/662059?v=4" width="100px;" alt=""/><br /><sub><b>Andreas von Studnitz</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=avstudnitz" title="Code">💻</a></td>
  </tr>
  <tr>
    <td align="center"><a href="https://github.com/dh1984"><img src="https://avatars1.githubusercontent.com/u/6348686?v=4" width="100px;" alt=""/><br /><sub><b>Daniel</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=dh1984" title="Code">💻</a></td>
    <td align="center"><a href="https://webvisum.de/"><img src="https://avatars2.githubusercontent.com/u/12797503?v=4" width="100px;" alt=""/><br /><sub><b>Andreas Mautz</b></sub></a><br /><a href="https://github.com/firegento/firegento-magesetup2/commits?author=mautz-et-tong" title="Code">💻</a></td>
    <td align="center"><a href="https://github.com/latenzio"><img src="https://avatars0.githubusercontent.com/u/8480072?v=4" width="100px;" alt=""/><br /><s

_(README truncated for .md surface. Full README on https://packagento.com/firegento/magesetup2.)_

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### Newer Versions

See [GitHub releases](https://github.com/firegento/firegento-magesetup2/releases).

### [v1.2.3] - 2025-05-24

#### Added
- PHP 8.4 compatibility (thanks @sprankhub)

#### Changed
- Update GitHub Actions (thanks @sprankhub)
- Update CH tax rates (thanks @sprankhub)

### [v1.2.2] - 2024-08-08

#### Added
- PHP 8.3 compatibility (thanks @jg-development and @sprankhub)

#### Changed
- Update GitHub Actions (thanks @sprankhub)

### [v1.2.1] - 2023-03-20

#### Added
- PHP 8.2 compatibility (thanks @aweb3r)

### [v1.2.0] - 2022-09-07

#### Changed
- Make shouldAddPriceDetails public for customizations (thanks @Cloudy777)
- PHP 8.1 compatibility: add integration tests (thanks @frostblogNet)

### [v1.1.2] - 2022-08-17

#### Changed

- PHP 8.1 compatibility: Prevent "trim(): Passing null to parameter 1 of type string is deprecated" error (thanks @therouv)

### [v1.1.1] - 2022-08-16

#### Added

- dedicated usage section in README (thanks @therouv)

#### Changed

- fix XSD reference in `etc/magesetup.xml` [#208](https://github.com/firegento/firegento-magesetup2/pull/208) (thanks @sprankhub)

### [v1.1.0] - 2022-03-31

#### Added

- support for PHP 8.1 [#207](https://github.com/firegento/firegento-magesetup2/pull/207) (thanks @domeglic)

### [v1.0.0] - 2021-08-19

#### Added

- support for Magento 2.4.3 [#200](https://github.com/firegento/firegento-magesetup2/pull/200) (thanks @sprankhub)

#### Changed

- fatal error on all frontend pages [#199](https://github.com/firegento/firegento-magesetup2/issues/199) (thanks @sprankhub)

#### Removed

- support for Magento < 2.4.3 [#200](https://github.com/firegento/firegento-magesetup2/pull/200) (thanks @sprankhub)

### [v0.4.1] - 2020-11-04

#### Changed

- Registry key already exists error for HTTPS sites [#186](https://github.com/firegento/firegento-magesetup2/pull/186) (thanks @sprankhub)
- Wrong attribute group name in setup scripts [#187](https://github.com/firegento/firegento-magesetup2/pull/187) (thanks @norgeindian)

### [v0.4.0] - 2020-10-08

#### Added

- Support for Magento 2.4 [#183](https://github.com/firegento/firegento-magesetup2/pull/183) (thanks @sprankhub)
- Support for PHP 7.4 [#183](https://github.com/firegento/firegento-magesetup2/pull/183) (thanks @sprankhub)

### [v0.3.0] - 2020-06-30

#### Added

- Add all contributors and bot config (thanks @kkrieger85)
- Add integration test (thanks @sprankhub,@BorisovskiP)
- Add integration test to travis ci [#166](https://github.com/firegento/firegento-magesetup2/issues/166) (thanks @frostblogNet)
- Add unit test form blocks (thanks @frostblogNet)
- Add integration test for visible in checkout property (thanks @sprankhub)

#### Changed

- Fix imprint blocks in mails [#149](https://github.com/firegento/firegento-magesetup2/issues/149) (thanks @sprankhub)
- Hide tax details for grouped product [#150](https://github.com/firegento/firegento-magesetup2/issues/150) (thanks @sprankhub)
- Fix setting of tax class ID on products (thanks @sprankhub)
- Configure kg as weight unit during setup [#31](https://github.com/firegento/firegento-magesetup2/issues/31) (thanks @sprankhub)
- Use delivery time label from attribute config (Note you have to configure the attribute lable in the admin area) [#124](https://github.com/firegento/firegento-magesetup2/issues/124) (thanks @sprankhub)
- Use newer coding magento standard (thanks @sprankhub)
- Update English translation (thanks @sprankhub)
- Update German translation (thanks @sprankhub)
- Replace around with after plugin (thanks @sprankhub)

#### Removed

- Remove price details from tier prices [#87](https://github.com/firegento/firegento-magesetup2/issues/87) (thanks @sprankhub)
- Drop support for magento 2.2.x and php 7.1.x (thanks @sprankhub + @frostblogNet)
- Remove unused Dutch translation (thanks @sprankhub)

## Recent Versions

| Version | Released |
|---|---|
| 1.3.0 | 2026-05-22 |
| 1.2.5 | 2026-01-28 |
| 1.2.4 | 2025-11-21 |
| 1.2.3 | 2025-05-24 |
| 1.2.2 | 2024-08-08 |
| 1.2.1 | 2023-03-20 |
| 1.2.0 | 2022-09-07 |
| 1.1.2 | 2022-08-17 |
| 1.1.1 | 2022-08-16 |
| 1.1.0 | 2022-03-31 |

Showing 10 of 18 versions. Full release history on https://packagento.com/firegento/magesetup2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | >=103.0.3 |
| magento/module-backend | * |
| magento/module-store | * |
| php | ~7.3.0\|\|~7.4.0\|\|~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0\|\|~8.5.0 |

## Quality

Latest release (1.3.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 129 | 4 errors, 125 warnings (ruleset: Magento2) — 113 auto-fixable with phpcbf |
| PHPMD | Fail | 17 | 17 rule violations (UnusedFormalParameter:6, MissingImport:3, ErrorControlOperator:3, UnusedLocalVariable:3, CyclomaticComplexity:1) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 39 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 4 | valid; 4 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 26 | 26 | – | – |
| 2.4.8 | – | 26 | 26 | – |
| 2.4.9 | – | – | 26 | 26 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["firegento/magesetup2"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

firegento is a Magento 2 vendor on Packagento. See https://packagento.com/firegento.md for their full catalogue.

