[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8369":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},8369,"money","moneyphp\u002Fmoney","moneyphp","PHP implementation of Fowler's Money pattern.","http:\u002F\u002Fmoneyphp.org",null,"PHP",4845,444,88,3,0,12,29.95,"MIT License",false,"master",[23,24,25,26,5,27],"currency","currency-converter","currency-exchange-rates","fowler-money-pattern","php","2026-06-12 02:01:52","# Money\n\n[![Latest Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Frelease\u002Fmoneyphp\u002Fmoney.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fmoneyphp\u002Fmoney\u002Freleases)\n![GitHub Workflow Status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fmoneyphp\u002Fmoney\u002Fci.yml?branch=master&style=flat-square)\n[![Total Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fmoneyphp\u002Fmoney.svg?style=flat-square)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fmoneyphp\u002Fmoney)\n\n[![Email](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Femail-team@moneyphp.org-blue.svg?style=flat-square)](mailto:team@moneyphp.org)\n\n![Money PHP](\u002Fresources\u002Flogo.png?raw=true)\n\nPHP library to make working with money safer, easier, and fun!\n\n> \"If I had a dime for every time I've seen someone use FLOAT to store currency, I'd have $999.997634\" -- [Bill Karwin](https:\u002F\u002Ftwitter.com\u002Fbillkarwin\u002Fstatus\u002F347561901460447232)\n\nIn short: You shouldn't represent monetary values by a float Wherever\nyou need to represent money, use this Money value object. Since version\n3.0 this library uses [strings internally](https:\u002F\u002Fgithub.com\u002Fmoneyphp\u002Fmoney\u002Fpull\u002F136)\nin order to support unlimited integers.\n\n```php\n\u003C?php\n\nuse Money\\Money;\n\n$fiveEur = Money::EUR(500);\n$tenEur = $fiveEur->add($fiveEur);\n\nlist($part1, $part2, $part3) = $tenEur->allocate([1, 1, 1]);\nassert($part1->equals(Money::EUR(334)));\nassert($part2->equals(Money::EUR(333)));\nassert($part3->equals(Money::EUR(333)));\n```\n\nThe documentation is available at http:\u002F\u002Fmoneyphp.org\n\n\n## Requirements\n\nThis library requires the [BCMath PHP extension](https:\u002F\u002Fwww.php.net\u002Fmanual\u002Fen\u002Fbook.bc.php). There might be additional dependencies for specific feature, e.g. the\nSwap exchange implementation, check the documentation for more information.\n\nVersion 4 requires PHP 8.0. For older version of PHP, use version 3 of this library. From version 4.5 this package\nwill only support [PHP versions that actually receive updates by PHP itself](https:\u002F\u002Fwww.php.net\u002Fsupported-versions.php).\nIf you want to use the package with older PHP versions, you can of course use older versions of this package.\n\n\n## Install\n\nVia Composer\n\n```bash\n$ composer require moneyphp\u002Fmoney\n```\n\n\n## Features\n\n- JSON Serialization\n- Big integer support utilizing different, transparent calculation logic upon availability (bcmath, gmp, plain php)\n- Money formatting (including intl formatter)\n- Currency repositories (ISO currencies included)\n- Money exchange (including [Swap](http:\u002F\u002Fswap.voutzinos.org) implementation)\n\n\n## Documentation\n\nPlease see the [official documentation](http:\u002F\u002Fmoneyphp.org).\n\n\n## Testing\n\nWe try to follow TDD by using [phpunit](https:\u002F\u002Fphpunit.de) to test this library.\n\n```bash\n$ composer test\n```\n\n### Running the tests in Docker\n\nMoney requires a set of dependencies, so you might want to run it in Docker.\n\nFirst, build the image locally:\n\n```bash\n$ docker build -t moneyphp .\n```\n\nThen run the tests:\n\n```bash\n$ docker run --rm -it -v $PWD:\u002Fapp -w \u002Fapp moneyphp vendor\u002Fbin\u002Fphpunit --exclude-group segmentation\n```\n\n\n## Contributing\n\nWe would love to see you helping us to make this library better and better.\nPlease keep in mind we do not use suffixes and prefixes in class names,\nso not `CurrenciesInterface`, but `Currencies`. Other than that, Style CI will help you\nusing the same code style as we are using. Please provide tests when creating a PR and clear descriptions of bugs when filing issues.\n\n\n## Security\n\nIf you discover any security related issues, please contact us at [team@moneyphp.org](mailto:team@moneyphp.org).\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n\n## Acknowledgements\n\nThis library is heavily inspired by [Martin Fowler's Money pattern](http:\u002F\u002Fmartinfowler.com\u002FeaaCatalog\u002Fmoney.html).\nA special remark goes to [Mathias Verraes](https:\u002F\u002Fgithub.com\u002Fmathiasverraes), without his contributions,\nin code and via his [blog](http:\u002F\u002Fverraes.net\u002F#blog), this library would not be where it stands now.\n","moneyphp\u002Fmoney 是一个 PHP 实现的 Fowler 的 Money 模式库，旨在让处理货币更安全、简便。它通过使用字符串内部表示来支持无限大的整数，避免了浮点数精度问题，并提供了包括JSON序列化、大整数支持、货币格式化、货币仓库以及货币兑换等功能。特别适合需要精确处理金融交易的应用场景，如电子商务平台、财务系统等。项目基于MIT许可证发布，要求PHP环境安装BCMath扩展以支持高精度计算。",2,"2026-06-11 03:17:37","top_language"]