whitecube/php-prices
A PHP library for working with prices and currencies: immutable Price objects, VAT rates, discounts, arithmetic, and locale-aware formatting/parsing via intl. Framework-agnostic, with optional Laravel integration.
whitecube/php-prices is a framework-agnostic PHP library for monetary price management. It fits best as a domain/value-object dependency inside pricing, catalog, checkout, billing, or invoicing services, not as a full pricing engine. Laravel integration would be through application services, actions, and Eloquent casts/adapters rather than native framework features.moneyphp/money?whitecube/php-prices, migrate read paths and lower-risk calculations first, then move write paths and persistence. Keep existing monetary representations stable during transition and add characterization tests before replacing production calculations.PriceService or value-object adapter with tests. Then integrate into one bounded use case such as catalog display or order-line calculation. Only after that expand to checkout, invoicing, refunds, and reporting. Avoid a big-bang migration of all monetary fields.How can I help you explore Laravel packages today?