PHP Package: moneyphp/money

MoneyPHP library simplifies working with currencies and monetary values in PHP applications efficiently and securely.

Current Version: 4.7.1
Last Updated: 2025-06-06
PHP Requirement: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
Dependencies:
symfony/dependency-injection
symfony/console
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

MoneyPHP is a robust PHP library designed to manage monetary values and currencies seamlessly. With its powerful features, developers can handle financial calculations accurately and securely. The library provides a comprehensive set of tools for formatting, exchanging, and converting currencies effortlessly. MoneyPHP ensures precise handling of decimals and rounding operations, making it an ideal choice for e-commerce platforms, accounting systems, and financial applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.7.1

Download Download v4.7.1

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/moneyphp/money/4.7.1/loader.php';
require_once 'libs/symfony/dependency-injection/7.3.0/loader.php';
require_once 'libs/symfony/console/7.3.0/loader.php';

use Money\Money;
use Symfony\Component\DependencyInjection\ContainerBuilder;

$obj = new Money();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.