brick/math
brick/math is a PHP library for arbitrary precision arithmetic. It provides BigInteger, BigDecimal, BigRational, and BigNumber classes, automatically using GMP or BCMath when available for fast, exact calculations.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| brick/reflection | 0.92 | Low-level PHP 8.1+ helpers extending native reflection. ReflectionTools can list all instance methods/properties across inheritance (including private parents), get class hierarchies, and create reflections for any callable with meaningful function names. | 23 | 24 | 3 | 6K | 1 | 17.8 | 37.1 | MIT | 7 months ago | |
| brick/varexporter | 0.88 | Prettier, safer alternative to PHP var_export(). Exports variables as standalone executable PHP code (no runtime dependency) with short array syntax, cleaner numeric arrays, and support for closures and custom objects beyond __set_state(), ideal for fast OPcache-friendly caching. | 196 | 199 | 20 | 2M | 6 | 13.2 | 57.8 | MIT | 10 months ago | |
| brick/geo | 0.88 | brick/geo is a PHP geometry library for working with points, lines, polygons, and other shapes. Provides common spatial operations, parsing/formatting, and robust value objects to model geo data cleanly in applications and services. | 254 | 251 | 35 | 225K | 5 | 12.8 | 42.3 | MIT | 1 year ago | |
| php-standard-library/math | 0.86 | Strictly typed math utilities for PHP with predictable, consistent error handling. Part of the PHP Standard Library project, providing reliable mathematical functions and a stable developer experience for safer numeric operations. | 1 | 1 | 0 | 20K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| brick/structured-data | 0.86 | Generate, parse, and validate Schema.org structured data in PHP. brick/structured-data helps you build JSON-LD and other formats with a typed API, ensuring correct properties and values for SEO-rich pages and interoperable metadata. | 26 | 26 | 10 | 30K | 2 | 2.2 | 43.9 | MIT | 1 year ago | |
| beloop/squarespace | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 1.7 | — | — | 7 years ago | |
| zendframework/zend-math | 0.86 | Zend Math provides math utilities for PHP, including big integer/decimal support, random number generation, and statistical helpers. Part of the Zend Framework ecosystem, it offers consistent, tested components for numeric operations. | 53 | 56 | 23 | 42K | 1 | 1.6 | 28.1 | BSD-3-Clause | 7 years ago | |
| beloop/core | 0.85 | Core component of the Beloop LMS suite: shared foundations used by other Beloop components and bundles built on Symfony. MIT licensed. Read-only split package—use the main beloop/components repository for issues, questions, and PRs. | 0 | 0 | 0 | 0 | 0 | 1.4 | — | — | 7 years ago | |
| brick/date-time | 0.85 | A powerful set of immutable PHP date-time classes built on native PHP and following ISO 8601, inspired by Java's JSR 310. Adds missing concepts such as LocalDate, LocalTime, YearMonth, and MonthDay. Requires PHP 8.2+. | 361 | 365 | 36 | 242K | 19 | 37.8 | 56.0 | MIT | 4 weeks ago | |
| simplito/bigint-wrapper-php | 0.85 | Lightweight PHP wrapper for working with big integers safely beyond native limits. Provides convenient object-style operations for arithmetic, comparisons, and formatting, helping avoid overflow issues when handling large numeric IDs, counters, or financial values. | 14 | 15 | 7 | 141K | 3 | 1.2 | 55.8 | MIT | — | |
| beloop/user | 0.85 | Laravel package for managing application users—utilities for user models, authentication-related helpers, and common user workflows. Intended to speed up user management setup in Laravel projects with sensible defaults and extensible structure. | 0 | 0 | 0 | 0 | 0 | 3.8 | — | — | 6 years ago | |
| hoa/math | 0.85 | Hoa\Math is a PHP library for mathematical expression evaluation, offering functions, constants, arithmetic visitors, combinatorics helpers, and random samplers. It lets applications parse and compute math expressions using extensible contexts. | 362 | 374 | 36 | 662K | 9 | 3.0 | 34.5 | — | 9 years ago | |
| beloop/language | 0.85 | Laravel package for handling application languages and localization: manage available languages, switch the current locale, and provide helpers/middleware for language detection and routing. Lightweight setup for multilingual sites and dashboards. | 0 | 0 | 0 | 2 | 0 | 1.4 | 4.7 | — | 7 years ago | |
| moontoast/math | 0.85 | PHP math utilities for Laravel and general use, offering convenient helpers for precise calculations, percentages, rounding, and numeric formatting. Lightweight and easy to integrate into apps where consistent arithmetic and number handling matter. | 456 | 365 | 7 | 137K | 1 | 2.3 | 24.1 | Apache-2.0 | 6 years ago | |
| brick/money | 0.84 | Brick\Money is a PHP library offering immutable Money and Currency classes with exact arithmetic and explicit rounding control, avoiding floating-point errors. Built on brick/math, it handles any amount size. Requires PHP 8.2+; GMP or BCMath recommended for speed. | 1,938 | 1,954 | 121 | 2M | 5 | 44.4 | 50.7 | MIT | 1 month ago | |
| yuwuhsien/laravel-bcmath-cast | 0.84 | Laravel Eloquent casts for PHP 8.4's BCMath\Number object, turning model attributes into arbitrary-precision decimals so you can use natural operators like +, -, and * directly while keeping money math exact. Requires PHP 8.4+ and Laravel 12+. | 2 | 2 | 0 | 2K | 0 | 15.7 | 44.2 | MIT | 3 months ago | |
| zdenekdrahos/bn-php | 0.84 | PHP library for working with Bangla/Bengali numbers and formatting. Convert between Bengali and Latin numerals, handle digit transformations, and support localization-friendly numeric output for apps needing Bangla numeral representation. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| litipk/php-bignumbers | 0.84 | Arbitrary-precision arithmetic for PHP with immutable BigInteger and BigDecimal classes. Perform exact integer and decimal math, comparisons, rounding, and conversions without floating-point precision loss—ideal for money, scientific, and large-number calculations. | 129 | 133 | 28 | 12K | 16 | 3.5 | 24.0 | MIT | 9 years ago | |
| markbaker/complex | 0.84 | PHP class library for complex number math. Create and operate on complex values with add/subtract/multiply/divide plus polar functions (theta, rho), conjugate/inverse, roots, logs, exponentials, powers, and a full set of trig and hyperbolic functions. | 1,670 | 1,670 | 11 | 12M | 1 | 10.3 | 54.1 | MIT | 5 years ago | |
| brick/phonenumber | 0.84 | Brick\PhoneNumber is a PHP library for parsing, formatting, and validating international phone numbers. A port of Google's libphonenumber, it offers robust utilities for formatting, validation, and type detection in PHP applications. | 428 | — | 37 | — | 0 | 3.3 | — | MIT | 1 year ago |
|
How can I help you explore Laravel packages today?