php-standard-library/math
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| lstrojny/hmmmath | 0.87 | PHP math utility package providing common numeric helpers and algorithms. Useful for calculations, statistics-like operations, and reusable math functions in Laravel or any PHP project. Lightweight, dependency-friendly, and easy to integrate into existing codebases. | 15 | 16 | 5 | 5K | 0 | 0.3 | 34.3 | — | — | |
| moontoast/math | 0.87 | 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 | 147K | 1 | 2.3 | 24.4 | Apache-2.0 | 6 years ago | |
| edemy/mathbundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| brick/math | 0.86 | Arbitrary-precision math for PHP. Work with big integers, decimals, and rational numbers via a clean OOP API. Optimized with GMP or BCMath when available, with automatic runtime selection. Requires PHP 8.2+ (older versions available). | 2,142 | 2,160 | 94 | 13M | 0 | 44.5 | 61.7 | MIT | 1 week ago | |
| phpoffice/math | 0.86 | Pure-PHP library for building and converting math formulas in MathML and Office MathML (OMML). Provides classes for elements like identifiers, operators, numbers, fractions, superscripts, rows, and semantics. Requires PHP 7.1+ and XML/XMLWriter. | 31 | 31 | 4 | 1M | 0 | 1.4 | 55.3 | MIT | 1 year ago | |
| langleyfoxall/math_eval | 0.85 | Safely evaluate math expressions in PHP. langleyfoxall/math_eval parses and computes strings with operators, brackets, and common functions, ideal for user-defined formulas and configuration values without using eval(). Lightweight and easy to integrate in Laravel or any PHP app. | 42 | 43 | 6 | 8K | 2 | 1.9 | 32.1 | LGPL-3.0 | 6 years ago | |
| mossadal/math-parser | 0.85 | Safe PHP math expression parser/evaluator that builds an AST from user formulas. Supports arithmetic, variables, and elementary functions, plus interpreters for evaluation, symbolic differentiation, and LaTeX pretty-printing; customizable lexer/parser with StdMathParser. | 179 | 179 | 41 | 35K | 9 | 5.0 | 35.0 | LGPL-3.0 | — | |
| zdenekdrahos/bn-php | 0.83 | 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 | — | — | — | |
| phpseclib/bcmath_compat | 0.82 | BCMath compatibility layer for PHP environments without the bcmath extension. Provides drop-in function replacements used by phpseclib, helping big integer and cryptography features work consistently across shared hosts, minimal installs, and varied PHP builds. | 167 | 168 | 6 | 292K | 0 | 5.3 | 44.5 | MIT | 1 year ago | |
| php-standard-library/php-standard-library | 0.79 | PSL is a modern standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers consistent, well-typed APIs for async, collections, I/O, networking, crypto, terminal UI, and more—safer alternatives to built-ins with predictable errors and async-ready design. | 1,543 | 1,544 | 87 | 254K | 21 | 46.2 | 44.0 | MIT | 1 week ago | |
| php-standard-library/foundation | 0.77 | A lightweight PHP foundation library offering common building blocks and utilities to bootstrap projects. Provides reusable helpers and core abstractions to reduce boilerplate and standardize patterns across apps and packages. | 1 | 1 | 0 | 33K | 0 | 21.2 | 64.8 | MIT | 1 week ago | |
| php-standard-library/filesystem | 0.77 | Type-safe filesystem utilities for PHP Standard Library. Perform common file and directory operations with consistent APIs and proper exception handling, improving safety and clarity over raw PHP functions. Documentation and contribution links included. | 1 | 1 | 0 | 21K | 0 | 21.2 | 64.9 | MIT | 1 week ago | |
| php-standard-library/fun | 0.76 | Functional programming utilities for PHP: compose and pipe callables, decorate functions, and control execution (memoize, throttle, debounce, retry, etc.). Part of PHP Standard Library with focused, reusable helpers for cleaner functional-style code. | 1 | 1 | 0 | 14K | 0 | 21.2 | 61.5 | MIT | 1 week ago | |
| zendframework/zend-math | 0.76 | 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 | 44K | 1 | 1.6 | 28.3 | BSD-3-Clause | 7 years ago | |
| php-standard-library/type | 0.76 | Runtime type validation for PHP using “Parse, Don’t Validate”: coerce and assert unstructured input into well-typed data. Useful for APIs, configs, and user input with clear parsing rules, assertions, and predictable failures. | 1 | 1 | 0 | 31K | 0 | 21.2 | 64.8 | MIT | 1 week ago | |
| php-standard-library/file | 0.75 | Typed PHP file handles for safe reading and writing, with explicit write modes and advisory locking. Part of PHP Standard Library, aiming for clear, reliable filesystem I/O primitives suitable for applications and reusable packages. | 1 | 1 | 0 | 27K | 0 | 21.2 | 64.9 | MIT | 1 week ago | |
| php-standard-library/json | 0.75 | php-standard-library/json provides JSON encode/decode helpers with sensible defaults and typed exceptions. Safer, clearer error handling than native json_encode/json_decode, ideal for consistent JSON handling in PHP apps and libraries. | 1 | 1 | 0 | 22K | 0 | 21.2 | 64.8 | MIT | 1 week ago |
How can I help you explore Laravel packages today?