Search by

yireo / magento2-currency-faker

yireo

Magento 2 module to generate fake currency rates for development and testing

Package info

github.com/yireo/Yireo_CurrencyFaker

Type:magento2-module

pkg:composer/yireo/magento2-currency-faker

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.2 2026-11-25 18:54 UTC

This package is auto-updated.

Last update: 2026-12-02 18:41:17 UTC


README

Magento version PHP version License Latest Version

This Magento 2 module adds a currency rate import service "Yireo Faker" that generates random currency rates (between 0.5 and 1.5) for testing purposes.

Warning

This module is meant for development and testing only. Do not use it on a live shop: it overwrites real currency rates with random values.

Installation

composer require --dev yireo/magento2-currency-faker
bin/magento module:enable Yireo_CurrencyFaker

Usage

Select Yireo Faker as import service under Stores > Currency Rates (button Import) or under Stores > Configuration > General > Currency Setup > Scheduled Import Settings.

Fake rates are only generated in developer mode. In any other deploy mode, the import is refused with a warning and no rates are saved. To allow fake rates outside of developer mode anyway (for instance on a CI or staging environment running in production mode), add the following to app/etc/env.php:

'yireo_currency_faker' => [
    'allow_production' => true,
],

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation