peso/brick-rateprovider 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

peso/brick-rateprovider

最新稳定版本:2.0.0

Composer 安装命令:

composer require peso/brick-rateprovider

包简介

Peso-based RateProvider class for Brick\Money

README 文档

README

Packagist PHP License GitHub Actions Codecov

This is a library that provides a RateProvider class for the Brick\Money based on the Peso for PHP.

Installation

composer require peso/brick-rateprovider

Example

<?php

use Brick\Money\CurrencyConverter;
use Brick\Money\Money;
use Peso\Brick\PesoRateProvider;
use Peso\Services\EuropeanCentralBankService;

require __DIR__ . '/vendor/autoload.php';

$rateProvider = new PesoRateProvider(new EuropeanCentralBankService());
$converter = new CurrencyConverter($rateProvider);

$eur100 = Money::of(100.00, 'EUR');

echo $converter->convert($eur100, 'USD'), PHP_EOL; // 'USD ...'

Documentation

Read the full documentation here: https://phpeso.org/v1.x/integrations/brick-rateprovider.html

Support

Please file issues on our main repo at GitHub: https://github.com/phpeso/brick-rateprovider/issues

License

The library is available as open source under the terms of the MIT License.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固