assoconnect/php-percent
Small PHP library to represent and work with percentages in a way that pairs well with MoneyPHP, based on Frederik Bosch’s proposal. Install via Composer and use the PHPDoc-documented API to apply percent calculations safely alongside Money values.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| roave/no-floaters | 0.83 | PHPStan plugin that bans floats: no float properties, parameters, return types, or assigning float values. Optional strict mode disallows any float-producing expression. Helps prevent rounding errors in domains like money, grading, or scientific calculations. | 216 | 217 | 13 | 7K | 2 | 23.4 | 25.8 | MIT | 2 months ago | |
| cknow/laravel-money | 0.80 | — | 1,044 | 1,047 | 100 | 164K | 3 | 30.8 | 34.5 | MIT | 4 months ago | |
| elasticms/helpers | 0.79 | — | 0 | 0 | 0 | 100 | 0 | 31.2 | 32.0 | LGPL-3.0 | 1 month ago | |
| phpstan/phpstan | 0.79 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 14,057 | 14,126 | 958 | 10M | 1,072 | 94.7 | 73.3 | MIT | 1 day ago | |
| phpstan/php-8-stubs | 0.79 | Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent. | 31 | 31 | 11 | 333K | 4 | 28.3 | 66.1 | MIT | 1 month ago | |
| swissspidy/phpstan-no-private | 0.78 | PHPStan extension that reports deprecation warnings when code uses “pseudo-private” elements marked with @access private. Helps prevent relying on internal classes, methods, functions, or properties. Easy install via Composer with optional extension-installer support. | 9 | 9 | 1 | 165K | 1 | 1.4 | 55.2 | MIT | 1 year ago | |
| php-units-of-measure/php-units-of-measure | 0.78 | PHP library for representing physical quantities and converting units (length, mass, etc.). Encapsulate values with their unit, convert via toUnit(), and accept quantities in any unit without hardcoding conversions. Composer install, PSR-4 autoloading. | 315 | 314 | 78 | 102K | 12 | 8.1 | 39.4 | MIT | 1 year ago | |
| php-standard-library/math | 0.78 | 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 | 17.7 | 63.2 | MIT | 2 months ago | |
| php-decimal/stubs | 0.78 | IDE and static analysis stubs for the PHP Decimal extension. Provides PHP method/function signatures to improve autocompletion and type checking without requiring the extension source. For installing the actual extension, see php-decimal/php-decimal. | 6 | 6 | 6 | 28K | 1 | 0.3 | 49.6 | MIT | — | |
| moontoast/math | 0.78 | 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 | 141K | 1 | 2.3 | 24.2 | Apache-2.0 | 6 years ago | |
| brick/money | 0.77 | Brick\Money is a PHP library for precise, immutable money and currency values. It provides exact arithmetic (no float errors), explicit rounding control, and supports large amounts via brick/math, with optional GMP/BCMath acceleration. | 1,922 | 1,937 | 118 | 1M | 4 | 45.5 | 47.5 | MIT | 6 days ago | |
| langleyfoxall/math_eval | 0.77 | 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 | 20.8 | 36.7 | LGPL-3.0 | 1 month ago | |
| 99designs/money-php | 0.76 | — | 11 | 13 | 3 | 74 | 0 | 0.1 | 11.8 | — | — | |
| mesilov/moneyphp-percentage | 0.74 | Tiny PHP helper for applying percentage calculations to MoneyPHP money values. Useful for discounts, taxes, fees, commissions, and proportional splits while keeping monetary amounts precise and reusable across your app. | 2 | 2 | 0 | 9K | 0 | 0.6 | 46.5 | MIT | 2 years ago | |
| assoconnect/absolute-percent-value-bundle | 0.73 | Symfony bundle that adds an AbsolutePercentValue field/type to handle percentage inputs safely, normalizing values and enabling comparisons, calculations, and validation without sign/format issues. Useful for forms and domain models needing absolute percentage values. | 1 | 1 | 1 | 734 | 0 | 14.5 | 38.1 | MIT | 5 months ago | |
| mathiasverraes/money | 0.71 | Small PHP money library that treats monetary values as immutable value objects to avoid floating-point errors. Includes currency support, arithmetic and comparisons, and formatting helpers—useful for modeling prices, totals, and discounts in a robust, domain-driven way. | 4,860 | 4,862 | 444 | 6K | 2 | 62.4 | 6.9 | MIT | 3 months ago | |
| moneyphp/money | 0.65 | moneyphp/money is a PHP value-object library for safe money handling without floats. Uses string-based big integers, supports arithmetic, allocation, currencies/ISO repositories, formatting (incl. intl), JSON serialization, and exchange rates. Requires BCMath. | 4,860 | 4,885 | 444 | 3M | 2 | 62.7 | 46.1 | MIT | 3 months ago | |
| contributte/phpstan | 0.62 | Contributte PHPStan integration for Nette projects. Install via Composer and get a ready-to-use PHPStan setup tailored for Nette 3.3+ on PHP 8.2+, with docs and ongoing maintenance by the Contributte team. | 1 | 2 | 2 | 1K | 0 | 10.6 | 42.6 | MIT | 6 months ago | |
| phpstan/phpdoc-parser | 0.61 | PHPDoc Parser for PHPStan that parses, represents, and modifies PHPDoc blocks as an AST. Supports rich type syntax (unions, generics, shapes, callables, conditional types), constant expressions, and Doctrine annotations, with full API reference for nodes. | 1,530 | 1,528 | 74 | 11M | 7 | 40.8 | 68.1 | MIT | 4 weeks ago |
How can I help you explore Laravel packages today?