承接 peso/moneyphp-exchange 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

peso/moneyphp-exchange

Composer 安装命令:

composer require peso/moneyphp-exchange

包简介

Peso-based Exchange class for Money

README 文档

README

Packagist PHP License GitHub Actions Codecov

This is a library that provides an Exchange class for the Money for PHP based on the Peso for PHP.

Installation

composer require peso/moneyphp-exchange

Example

<?php

use Money\Converter;
use Money\Currencies\ISOCurrencies;
use Money\Currency;
use Money\Money;
use Peso\Money\PesoConverter;
use Peso\Money\PesoExchange;
use Peso\Services\EuropeanCentralBankService;

$exchange = new PesoExchange(new EuropeanCentralBankService());
$eur100 = Money::EUR(10000);

$converter = new Converter(new ISOCurrencies(), $exchange);

var_dump($converter->convert($eur100, new Currency('USD'))); // Money::USD(...)

// or

$converter = new PesoConverter(new ISOCurrencies(), $exchange);

var_dump($converter->convert($eur100, new Currency('USD'))); // Money::USD(...)
var_dump($converter->convertOnDate($eur100, new Currency('USD')), '2026-04-29'); // Money::USD(11706)

Documentation

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

Support

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

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固