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 | 8K | 2 | 25.4 | 26.3 | MIT | 1 month ago | |
| andanteproject/timestampable-bundle | 0.80 | Symfony bundle for Doctrine entities that automatically manages createdAt and updatedAt with DateTimeImmutable. Zero config to start, customizable, uses Symfony Clock, no attributes needed, and won’t overwrite timestamps you set manually. Compatible with Symfony 5–8, PHP 8.2. | 9 | 9 | 3 | 3K | 0 | 20.7 | 40.1 | MIT | 1 month ago | |
| cknow/laravel-money | 0.80 | — | 1,040 | 1,044 | 100 | 163K | 3 | 33.2 | 35.2 | MIT | 2 months 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,001 | 14,073 | 950 | 9M | 1,052 | 94.0 | 72.3 | MIT | 2 weeks 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 | 367K | 4 | 30.4 | 66.8 | MIT | 1 week 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 | 172K | 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. | 313 | 314 | 78 | 98K | 12 | 8.0 | 39.2 | 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 | 17K | 0 | 20.1 | 63.3 | MIT | 3 weeks 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 | 30K | 1 | 0.3 | 50.2 | 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 | 149K | 1 | 2.3 | 24.5 | 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,910 | 1,926 | 114 | 1M | 4 | 40.4 | 45.3 | MIT | 2 months ago | |
| 99designs/money-php | 0.76 | — | 11 | 13 | 3 | 8 | 0 | 0.1 | 3.1 | — | — | |
| assoconnect/absolute-percent-value-bundle | 0.76 | 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 | 362 | 0 | 16.3 | 34.9 | MIT | 4 months ago | |
| 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 | 6K | 0 | 0.6 | 45.6 | MIT | 2 years 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,846 | 4,844 | 444 | 5K | 4 | 65.7 | 7.7 | MIT | 1 month 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,846 | 4,878 | 444 | 3M | 4 | 66.0 | 47.3 | MIT | 1 month 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 | 2K | 0 | 12.4 | 46.9 | MIT | 5 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,529 | 1,526 | 74 | 10M | 8 | 34.6 | 64.8 | MIT | 4 months ago |
How can I help you explore Laravel packages today?