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

Nova Money Field Laravel Package

atefr/nova-money-field

A Laravel Nova money field for displaying and editing monetary values with configurable currency symbols, decimal precision, and formatting. It keeps prices and amounts consistent and readable across Nova admin panels, resources, and forms.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

The v1.5.1 release adds support for moneyphp/money v4 and cknow/laravel-money. This is primarily a compatibility and interoperability update, not a new feature in the package’s own domain logic. For a TPM, the key question is whether this release reduces integration friction or introduces upgrade risk.

Architecture fit: The package remains a Laravel-native money abstraction. Supporting moneyphp/money v4 aligns with the modern PHP money ecosystem and is likely necessary for long-term viability. Adding cknow/laravel-money support suggests the package can now interoperate with, or be adopted alongside, another Laravel money package. That can reduce duplication in teams already using cknow/laravel-money, but it also raises a scope question: is this package positioning itself as an alternative, a wrapper, or a bridge? The answer affects architectural decisions.

Integration feasibility: Composer-based installation with Laravel auto-discovery and config publishing is straightforward. The main feasibility gate is dependency resolution. moneyphp/money v4 requires PHP 7.4+ and changed some APIs from v3 (notably amount handling as strings rather than integers in some contexts). If the application or other dependencies still pin moneyphp/money v3, this release may not be installable without a broader upgrade. cknow/laravel-money support is likely optional, but that must be confirmed.

Technical risk: Moderate. The package adds compatibility rather than changing its own public API, but the underlying moneyphp/money v4 upgrade can affect arithmetic, formatting, serialization, and rounding behavior if Money objects leak through the package’s boundaries. If the package exposes Money instances directly, consumers may need to adapt. Supporting two money libraries also increases the package’s test matrix and maintenance surface. A patch version number (v1.5.1) for a feature that adds dependency support is slightly unusual and should be validated against semver expectations.

Key questions:

  • Does the package support both moneyphp/money v3 and v4 simultaneously, or does v1.5.1 require v4?
  • Is cknow/laravel-money support optional, or does it change default behavior?
  • What Laravel and PHP versions are supported?
  • Are there breaking changes in the package’s own API, or only in the upstream dependency?
  • Is there a migration guide and test coverage for both money backends?
  • Does adding cknow/laravel-money create ambiguity about which money abstraction should be used in application code?

Integration Approach

Stack fit: Suitable for Laravel applications on PHP 7.4+ (likely 8.0+ depending on Laravel version) that need first-class money value objects, currency handling, and formatting. It fits monoliths and modular Laravel services. Teams already using cknow/laravel-money should evaluate whether this package replaces, wraps, or complements it before adding another money dependency.

Migration path: If the application currently uses moneyphp/money v3, treat this as a dependency upgrade, not a drop-in patch. Create a branch, update the package, and run the full test suite with special attention to money arithmetic, rounding, formatting, and serialization. If the application uses cknow/laravel-money, run a spike to confirm interoperability and decide whether to consolidate on one abstraction. If neither dependency is present, adoption is low-friction.

Compatibility: Check composer why moneyphp/money and composer why cknow/laravel-money before upgrading. Other packages may pin v3 or conflict with the new support. Confirm Laravel version constraints and PHP version compatibility. Because the release is labeled v1.5.1, verify that it is not a hidden breaking change for existing consumers.

Sequencing:

  1. Inventory current money usage and dependency constraints.
  2. Run a Composer dry-run in a branch to surface conflicts.
  3. Upgrade moneyphp/money to v4 in a dev environment.
  4. Run unit and integration tests focused on money formatting, arithmetic, and currency conversion.
  5. If using cknow/laravel-money, test both libraries together and document the preferred abstraction.
  6. Deploy to staging, then production with a rollback plan.

Operational Impact

Maintenance: The package now supports two upstream money libraries, which increases the maintainer’s test matrix and release cadence complexity. For adopters, this is a net positive if it unblocks a moneyphp/money v4 upgrade, but it also means tracking two dependency chains. Pin to a known-good version and monitor releases.

Support: Laravel ecosystem support is likely community-driven. Check issue throughput, release frequency, and whether the maintainer documents the cknow/laravel-money integration. A patch release that adds compatibility support should ideally include a changelog note and migration guidance; absence of that is a mild support risk.

Scaling: Money operations are rarely a scaling bottleneck, but formatting and currency conversion can be. moneyphp/money v4’s string-based amounts may have minor performance implications versus v3 integers, but this is unlikely to matter for typical Laravel workloads. The bigger scaling concern is consistency: if both money libraries are used in different parts of the codebase, behavior may diverge.

Failure modes:

  • Composer dependency conflicts if other packages still require moneyphp/money v3.
  • Silent behavioral changes in rounding, formatting, or serialization after the v4 upgrade.
  • Inconsistent money handling if cknow/laravel-money support is partial or undocumented.
  • Semver confusion if v1.5.1 is treated as a safe patch but requires a major upstream upgrade.
  • Insufficient test coverage for the new compatibility paths.

Ramp-up: Developers familiar with Laravel and moneyphp/money will ramp up quickly. Those new to moneyphp/money v4 should read the upgrade notes, especially around amount types and immutability. If the package exposes both moneyphp/money and cknow/laravel-money abstractions, onboarding documentation should explicitly state which one to use and when.

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.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle