yireo / magento2-currency-faker
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
Requires
- php: >=8.2 <8.6
- magento/framework: ^103.0
- magento/module-directory: ^100.4
Requires (Dev)
- phpunit/phpunit: ^10.5 || ^11.0 || ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 18:41:17 UTC
README
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, ],