money - PHP implementation of Fowler's Money pattern.

  •        13

In short: You shouldn't represent monetary values by a float. Wherever you need to represent money, use this Money value object. Since version 3.0 this library uses strings internally in order to support unlimited integers. PHP 5.6+. Other than that, this library has no external requirements. MoneyPHP will not provide any support to PHP versions that are not supported by the language itself. There might be additional dependencies for specific feature, e.g. the Swap exchange implementation, check the documentation for more information.

http://moneyphp.org
https://github.com/moneyphp/money

Tags
Implementation
License
Platform

   




Related Projects

swap - :currency_exchange: Currency exchange rates library

  •    PHP

Swap allows you to retrieve currency exchange rates from various services such as Fixer, currencylayer or 1Forge and optionally cache the results. It is integrated to other libraries like moneyphp/money and provides a Symfony Bundle and a Laravel Package. We recommend to use the services that support our project, providing a free plan up to 1,000 requests per day.

fixer.io - A foreign exchange rates and currency conversion API

  •    Ruby

Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central Bank.The rates are updated daily around 4PM CET.

go-money - Go implementation of Fowler's Money pattern

  •    Go

GoMoney provides ability to work with monetary value using a currency's smallest unit. Package allows you to use basic Money operations like rounding, splitting or allocating without losing a penny. You shouldn't use float for monetary values, since they always carry small rounding differences.

Accounting.js - A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.

  •    Javascript

accounting.js is a tiny JavaScript library for number, money and currency parsing/formatting. It's lightweight, fully localisable, has no dependencies, and works great client-side or server-side. Use standalone or as a nodeJS/npm and AMD/requireJS module.

fixer - A foreign exchange rates and currency conversion API

  •    Ruby

We are happy to announce the complete relaunch of fixer.io into a more stable, more secure, and much more advanced currency & exchange rate conversion API platform. While the core structure of our API remains unchanged, all users of the legacy Fixer API will be required to sign up for a free API access key and perform a few simple changes to their integration. To learn more about the changes that are required, please jump to the „Required Changes“ section below. As of March 6th 2018, the legacy Fixer API (api.fixer.io) is deprecated and a completely re-engineered API is now accessible at https://data.fixer.io/api/ The core structure of the old API has remained unchanged, and you will only need to perform a few simple changes to your integration.


JavaMoney - Money and Currency API for Java

  •    Java

JavaMoney is the new monetary API for the Java Platform as well as related projects and libraries. Whereas the API (JSR 354) provides a portable and extensible API for handling of Money & Currency models, Moneta provides a production ready reference implementation.

A simple ASP.NET Currency / Money TextBox User Control

  •    

A ASP.NET TextBox control used with AJAX maskeditextender makes it possible to enter numbers but it's not very intuitive to use. CurrencyTextBox control is a user control on top of TextBox to allow easy entry/update of money / currency values. 9/12/2010: Updated with some fixes.

money.js - money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS

  •    Javascript

Simple and tiny JavaScript library for realtime currency conversion and exchange rate calculation, from any currency, to any currency.money.js is lightweight, has no dependencies, and works great client-side or server-side. Use standalone or as a nodeJS/npm and AMD/requireJS module.

google_currency - Ruby Money::Bank interface for the Google Currency exchange data

  •    Ruby

Ruby Money::Bank interface for the Google Currency exchange data

Money Type for the CLR

  •    

An implementation of a Money type for the CLR. Embodies much of the "Money" pattern described in Martin Fowler's "Patterns for Enterprise Application Architecture," while also adding a bit more functionality and performance by relying on the .Net framework and runtime.

autoNumeric

  •    JQuery

autoNumeric is a jQuery plugin that automatically formats currency (money) and numbers as you type on form inputs. It supports most International numeric formats and currency signs including those used in Europe, North and South America, Asia and India (lakhs**).

Money - A precise, type-safe representation of a monetary amount in a given currency.

  •    Swift

A precise, type-safe representation of monetary amounts in a given currency. This functionality is discussed in Chapter 3 of Flight School Guide to Swift Numbers.

money - Library for dealing with money and currency conversion

  •    Ruby

Library for dealing with money and currency conversion

Taler - Electronic payments for a liberal society

  •    C

Taler is a new electronic payment system. When you pay with Taler, your identity does not have to be revealed to the merchant. The bank, government and exchange will also never learn how you spent your electronic money. However, you can prove that you paid in court if necessary.

Litecoin - Global Decentralized Currency

  •    C++

Litecoin is an experimental digital currency that enables instant payments to anyone, anywhere in the world. Litecoin uses peer-to-peer technology to operate with no central authority: managing transactions and issuing money are carried out collectively by the network. Litecoin Core is the name of open source software which enables the use of this currency.

accounting - money and currency formatting for golang

  •    Go

FormatMoney is a function for formatting numbers as money values, with customisable currency symbol, precision (decimal places), and thousand/decimal separators.FormatMoney supports various types of value by runtime reflection. If you don't need runtime type evaluation, please refer to FormatMoneyInt, FormatMoneyBigRat, FormatMoneyBigRat, or FormatMoneyFloat64.

Money Class for C#. Fast, light and flexible

  •    CSharp

This Money class gives you the ability to work with money of multiple currencies as if it were built-in types. It looks and behaves like a decimal with extra features, but can perform much faster.

Money - Swift value types for working with money & currency

  •    Swift

Money is a Swift framework for iOS, watchOS, tvOS and OS X. It provides types and functionality to represent, calculate and convert money in the 298 ISO currencies.

AllAboutForex - Money Changer

  •    

The 'AllAboutForex' aims at developing a web site for firms which are involved in currency exchange business. 'AllAboutForex'gives a broad idea about various instruments in Money market like currencies, travellers cheques,quick moeny transfers etc. Also covers FAQs on Forex.