# yireo/magento2-taxratesmanager2

> Manage EU VAT rates automatically

`composer require yireo/magento2-taxratesmanager2`

Canonical URL: https://packagento.com/yireo/magento2-taxratesmanager2

## At a glance

- **Vendor**: yireo (https://packagento.com/yireo.md)
- **Latest version**: 1.3.1 — released 2026-04-29
- **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/yireo/magento2-taxratesmanager2 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 yireo/magento2-taxratesmanager2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Manage EU VAT rates automatically

## README

#### About the tests included
The unit tests are covering simple classes that offer utilities to other classes and have no dependencies. The integration tests require the presence of Magento. The functional tests also require an internet connection.

## 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/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [Unreleased]

### [1.3.1] - 29 April 2026
#### Fixed
- Show error in backend when clean task gives exception

### [1.3.0] - 19 April 2026
#### Fixed
- Add CLI command to add all rates
- Copy generic CI/CD files

### [1.2.15] - 22 October 2025
#### Fixed
- Add integration test helper to GitHub Action
- Add dep with integration testing helper
- Always run integration tests
- Add new workflow tests

### [1.2.14] - 27 July 2025
#### Fixed
- $escape parameter must be provided #5

### [1.2.13] - 19 July 2025
#### Fixed
- Fix possible error with empty postcode

### [1.2.12] - 06 May 2025
#### Fixed
- Fix PHP 8.4 issue
- Fix compat with PHPUnit
- Remove `setup_version` and add `Magento_Config` dep

### [1.2.11] - 24 October 2024
#### Fixed
- Add funding

### [1.2.10] - 2 October 2024
#### Fixed
- Send mail by using the configured email address

### [1.2.9] - 9 April 2024
#### Fixed
- Fix calling Rate class in the Add action #2 @se-viacheslav

### [1.2.8] - 9 April 2023
#### Fixed
- Compat psr/log with Magento 2.4.7

### [1.2.7] - 8 April 2023
- Failed release

### [1.2.6] - 9 January 2023
#### Fixed
- Properly use ZIP codes from feed

### [1.2.5] - 25 April 2022
#### Fixed
- Version bump

### [1.2.4] - 25 April 2022
#### Fixed
- Upgrade Guzzle because of Magento 2.4.4

### [1.2.3] - 1 January 2021
#### Fixed
- Only report rates higher than 0

### [1.2.2] - 29 July 2019
#### Added
- Support for Magento 2.4
- Add KeepAChangeLog support
- Move configuration to separate **Yireo** section

### [1.2.1] - January 2019
#### Added
- Fix issue with mail not being sent via cron
- Add website name to email subject
- Increase cron time to every 3 minutes

## [1.2.0] - December 2019
#### Added
- Add Fix link to notices
- Add "Clean All Rates" button
- Clean up dependencies in composer file
- Add GitLab CI integration

## [1.0.1] - December 2019
#### Added
- Fix typo in settings

## [1.0.0] - December 2019
#### Added
- Stable release

## [0.0.2] - December 2019
#### Added
- Integration tests completed
- Functional tests completed

## [0.0.1] - December 2019
#### Added
- Working proof of concept

## Recent Versions

| Version | Released |
|---|---|
| 1.3.1 | 2026-04-29 |
| 1.3.0 | 2026-04-19 |
| 1.2.15 | 2025-10-22 |
| 1.2.14 | 2025-07-27 |
| 1.2.13 | 2025-07-19 |
| 1.2.12 | 2025-05-06 |
| 1.2.11 | 2024-10-24 |
| 1.2.10 | 2024-10-02 |
| 1.2.9 | 2024-09-03 |
| 1.2.8 | 2024-04-09 |

Showing 10 of 20 versions. Full release history on https://packagento.com/yireo/magento2-taxratesmanager2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-pcre | * |
| guzzlehttp/guzzle | ~6.0\|^7.0 |
| magento/framework | ^100.0\|^101.0\|^102.0\|^103.0 |
| magento/module-backend | ^100.0\|^101.0\|^102.0 |
| magento/module-config | ^100.0\|^101.0 |
| magento/module-customer | ^100.0\|^101.0\|^102.0\|^103.0 |
| magento/module-store | ^100.0\|^101.0 |
| magento/module-tax | ^100.0 |
| php | ^7.4\|^8.1 |
| psr/log | ^1 \|\| ^2 \|\| ^3 |

### Require (dev)

| Package | Constraint |
|---|---|
| yireo/magento2-integration-test-helper | ~0.0 |

## Quality

Latest release (1.3.1) 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 | Warning | 50 | 50 warnings (ruleset: Magento2) — 39 auto-fixable with phpcbf |
| PHPMD | Warning | 7 | 7 rule violations (UnusedFormalParameter:4, UnusedLocalVariable:2, IfStatementAssignment:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (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 | 5 | 5 | – | – |
| 2.4.8 | – | 5 | 5 | – |
| 2.4.9 | – | – | 5 | 5 |


### 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 |


### 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=["yireo/magento2-taxratesmanager2"],
  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

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

