Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Money Issuer

Money Issuer Laravel Package

3neti/money-issuer

A Laravel package for issuing and working with money value objects. Define amounts with currencies, perform precise arithmetic, avoid floating-point errors, and format values for display through a clean, framework-friendly API. Supports multiple currencies and integrates smoothly with Eloquent model...

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Money Issuer
What is 3neti/money-issuer used for?
3neti/money-issuer is a Laravel/PHP package for creating and issuing immutable, currency-aware Money value objects. It focuses on integer minor-unit arithmetic so you can avoid floating-point rounding errors. It also provides parsing, formatting, and validation for amounts and currencies.
How do I install and configure 3neti/money-issuer in Laravel?
Install it with composer require 3neti/money-issuer. If your Laravel version does not auto-discover the service provider, register the package provider manually as described in the README. Publish and review any package configuration before using it in application code.
How does money-issuer avoid floating-point errors?
The package represents amounts in integer minor units and pairs them with an explicit currency. Arithmetic is performed on those integers rather than binary floating-point values. That design prevents common rounding and precision issues when adding, subtracting, or comparing money.
Which currencies does 3neti/money-issuer support?
The package describes support for multiple currencies and currency-aware parsing and formatting. The exact supported currency list should be confirmed in the README or package configuration because it may change between releases. Always store and pass the currency explicitly rather than assuming a default.
How do I create a Money object from an amount?
Create Money values through the package's issuing API, passing an amount and an explicit currency. Prefer integer minor units when constructing values from stored or calculated data. Check the README for the exact factory or constructor names in your installed version.
Can I use 3neti/money-issuer with Eloquent models?
The package overview says it integrates smoothly with Eloquent models. A common pattern is to store the amount as integer minor units plus a currency code column, then expose a Money value through model accessors or a cast if one is provided. Confirm the available cast or integration helpers in the README before changing schema.
How should I format Money values in Blade views?
Use the package's formatting support to convert a Money value into a display string, then output that string in Blade. Keep formatting in presenters, view models, or Blade helpers rather than mixing display rules into domain logic. Verify locale and currency formatting behavior for the currencies you support.
Is money-issuer production-ready and which Laravel versions does it support?
The package overview does not list exact PHP and Laravel version constraints, so check the repository composer.json and README for supported ranges. Treat a 1.x package as production-capable only after reviewing its tests, documentation, and release history. Pin the version in composer.json and monitor updates before relying on it in critical payment flows.
How do I test code that uses 3neti/money-issuer?
Test Money behavior with unit tests that assert the minor-unit amount and currency, since the objects are immutable and do not require a database. For Laravel integration, verify container resolution and any published configuration in a feature test. Avoid mocking Money itself; assert its exposed values instead.
What alternatives to 3neti/money-issuer should I consider?
Compare 3neti/money-issuer with moneyphp/money and brick/money by checking API fit, Laravel integration, currency formatting, and maintenance activity. moneyphp/money is widely used, while brick/money offers its own API, and 3neti/money-issuer emphasizes Laravel-friendly issuing and validation. Choose based on your supported currencies, framework needs, and how much integration code you want to maintain.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core