Skip to content

Installation & Requirements

  • PHP 8.4+ with ext-bcmath, ext-intl, and ext-curl enabled.
  • ProcessWire 3.0.271+ with Inertia, React, and Entries installed and active.
Terminal window
composer require trk/processwire-currency
php vendor/bin/wire module:install Currency --json

On installation, Currency registers its 3 Entries blueprints (currency-settings, currency-currencies, currency-rate-history), seeds default currencies (EUR base plus common world currencies via CurrencySeeds), and installs the 3 RBAC permissions (currency-view, currency-manage, currency-admin).

Run the diagnostic command and list active currencies:

Terminal window
php vendor/bin/wire currency:doctor --json
php vendor/bin/wire currency:list --json

Currency ships SyncExchangeRatesTask (schedule/SyncExchangeRatesTask.php), scheduled hourly(). Whenever autoSyncEnabled is active, activeProvider !== 'manual', and the configured syncIntervalHours window has elapsed, the scheduler refreshes rates automatically and prunes history older than historyRetentionDays.

Next steps