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

Laracash Laravel Package

andriichuk/laracash

Laracash is a Laravel package for working with money and currencies. It provides simple helpers for formatting, converting, and calculating monetary values, with configurable currency support for consistent cash handling across Laravel applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Pricing and catalog display: Standardizes money handling in Laravel so prices are stored, calculated, and formatted as currency values rather than floats or ad hoc integers, reducing rounding and display defects.
  • Multi-currency roadmap: Supports decisions around regional pricing, localized checkout, invoices, and currency-aware formatting by giving the product a consistent money abstraction.
  • Billing-adjacent features: Useful for line items, discounts, totals, refunds, and admin views where currency correctness matters, while leaving payment processing and subscription orchestration to dedicated systems.
  • Build vs. buy: Replaces a custom in-house money helper/cast layer with a small MIT Laravel package. The PM decision is to buy the commodity utility and spend engineering effort on differentiated billing and pricing logic.
  • Use cases: SaaS plans, ecommerce catalogs, marketplaces, invoicing, reporting dashboards, and any Laravel product where currency formatting or multi-currency support is emerging.
  • Dependency strategy: Because adoption is modest, treat it as a tactical utility dependency: wrap it behind an internal money service or adapter so the product is not tightly coupled to the package API.

When to Consider This Package

  • Consider it when the Laravel product needs currency-safe money primitives, Eloquent casts, validation, formatting, or consistent monetary arithmetic and the team wants a lightweight MIT package rather than building those pieces.
  • Consider it when multi-currency or localized pricing is on the near-term roadmap and the current codebase uses floats, strings, or scattered integer-cent conventions.
  • Consider it when engineering wants a Laravel-native utility with low integration overhead and is willing to pin versions, review the code, and add tests around money behavior.
  • Look elsewhere or defer if the product only needs simple single-currency integer cents and has no near-term localization or multi-currency plans.
  • Look elsewhere for payment orchestration, subscription billing, tax calculation, FX rate feeds, ledger-grade accounting, compliance, or PCI scope; this package is not a billing platform.
  • Apply extra scrutiny if the organization requires large-community support, long-term vendor backing, or formal security/compliance guarantees. With 75 GitHub stars and a single-maintainer profile, adoption should be gated by code review, version pinning, and an exit plan.

How to Pitch It (Stakeholders)

To executives: This is a small MIT Laravel utility that standardizes how we store, calculate, and display money. It lowers the risk of pricing and currency bugs and gives us a cleaner path to multi-currency support without building custom infrastructure. It is not a billing or payments platform, and given its modest adoption, we should use it as a wrapped, pinned dependency rather than a strategic system.

To engineering: Use it for money value objects, currency handling, Eloquent casts, validation, and formatting where it fits our Laravel version and use cases. Do not use it as a substitute for payment, tax, FX, or accounting systems. Wrap it behind an internal interface, add regression tests for rounding and formatting, and pin the version. The last release was May 2024 and community adoption is limited, so maintainability and compatibility need a quick engineering review before adoption.

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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource