cline/numerus

Immutable numeric value object with chainable arithmetic operations and Laravel Number formatting

Maintainers

👁 faustbrian

Package info

github.com/faustbrian/numerus

pkg:composer/cline/numerus

Statistics

Installs: 5 250

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 0

5.0.3 2026-03-18 16:45 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT d1f5f97f93bdc2f851966d604a8d2a66f42683b5

  • Brian Faust <brian.woop@cline.sh>

phpi18nlocalecurrencyintlnumberlaravelformattingarithmeticmathematicsimmutablenumericvalue-objectpercentage

This package is auto-updated.

Last update: 2026-06-18 17:20:55 UTC


README

👁 GitHub Workflow Status
👁 Latest Version on Packagist
👁 Software License
👁 Total Downloads

Immutable numeric value object with chainable arithmetic operations and Laravel Number formatting. Uses brick/math for arbitrary-precision arithmetic, ensuring accurate calculations for financial and scientific use cases.

Requirements

Requires PHP 8.4+

Installation

composer require cline/numerus

Documentation

  • Basic Usage - Core arithmetic and rounding operations
  • Comparisons - Comparison operations and type checking
  • Chaining - Advanced chaining patterns and practical examples
  • Formatting - Laravel Number formatting, localization, and parsing

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.