spatian-dev/firefly-iii-xchange
Composer 安装命令:
composer require spatian-dev/firefly-iii-xchange
包简介
An exchange rates API services integration for Firefly III
README 文档
README
An exchange rates API services integration for Firefly III
Firefly III Xchange is a Laravel package that enhances Firefly III with automated exchange rate support. It connects to external exchange rate providers and makes up-to-date currency data available to a Firefly III installation.
🚀 Features
- 📊 Fetches current exchange rates from configurable API services
- 💸 Seamless integration with Firefly III’s currency system
- 📦 Easy setup in a Firefly III instance
- ⚙️ Simple yet flexible configuration for selecting rate providers
📦 Installation
Installation is easy. Simply navigate to your self-hosted Firefly III installation folder and run the following command
composer require spatian-dev/firefly-iii-xchange
🛠️ For now, only self-hosted instances are supported. We're looking to add support for containerized deployments. Contributions are welcome, please visit the Contributing section below.
⚙️ Configuration
After installation, configuration is easy via the .env file.
🧑🏻💻 For Advanced Users And Developers
Although all settings right now are configurable directly in your.envfile, you can also publish the package’s settingsphp artisan vendor:publish --provider="Spatian\FireflyIIIXchange\Providers\FireflyXchangeServiceProvider" --tag=config
Firefly III Personal Access Token
In order to update the exchange rates in your Firefly III administration, a personal access token (PAT) must be configured.
XCHANGE_FIREFLY_TOKEN=<your-token-here>
You can create and manage PATs in your Firefly III administration panel. Consult the Firefly III documentation for more details.
Default Exchange Source Currency
Configure the source currency for which the exchange rates will be fetched here.
XCHANGE_CURRENCY=USD
This is can be overriden when running the xchange:refresh command. See the Usage section below.
External Exchange Rates Service
XCHANGE_SERVICE=<external_api>
If this variable is left empty, Firefly III Xchange will be disabled and will not update exchange rates. Currently supported services are listed below.
⚠️ Disclaimer: Please note that the authors of this package maintain no relationship or affiliation with any of the services listed below.
Exchangerate.host
Exchangerate.host is a paid service with a free tier.
- Use
XCHANGE_SERVICE=exchangerate_hostto enable this service. - Configure your API key for this service using
XCHANGE_SERVICE=<your-api-key>
Usage
Manually Running The Command
To update exchange rates using your configured service and currency, simply run
php artisan xchange:refresh
You can override the default source currency for which exchange rates are fetched. For example, to use CAD as a source currency, run the following command
php artisan xchange:refresh -C CAD
Automating Updates Using Cron
Cron is a very powerful time-based scheduler that can be used to automate exchange rates updates. To do so, edit your file
crontab -e
Then add as many lines as necessary to schedule updates.
Assuming your PHP binary is located at /usr/bin/php, these lines will look something like this
* * * * * /usr/bin/php <path-to-firefly-iii>/artisan xchange:refresh
Make sure your replace <path-to-firefly-iii> with the actual absolute path to your Firefly III installation. The asterisks at the beginning are where the schedule can be configured, see Cron on Wikipedia and the Cron article on Firefly III's documentation for more details.
For example, the following cron lines will fetch CAD exchange rates every day at 1:00 AM, and USD exchange rates every day at 2:00 AM
0 1 * * * /usr/bin/php <path-to-firefly-iii>/artisan xchange:refresh -C CAD
0 2 * * * /usr/bin/php <path-to-firefly-iii>/artisan xchange:refresh -C USD
📃 License
Firefly III Xchange is free and open-source software released under the Apache 2.0 license. See LICENSE for more information.
🧑🏻💻 Contributing
We are currently looking to:
- Expand the available external exchange rate services with more options
- Add support for containerized deployments
If you'd like to contribute, please consult the contribution guide.
spatian-dev/firefly-iii-xchange 适用场景与选型建议
spatian-dev/firefly-iii-xchange 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「currency」 「laravel」 「Rate」 「exchange」 「firefly」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 spatian-dev/firefly-iii-xchange 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 spatian-dev/firefly-iii-xchange 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 spatian-dev/firefly-iii-xchange 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Fixer.io data provider for Peso
TCMB Currenct Converter
Simple ASCII output of array data
Immutable PHP currency converter that's data-agnostic.
Alfabank REST API integration
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 37
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-01-29