rsctd / huge-fraction
A PHP library to work with huge fractions
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/rsctd/huge-fraction
Requires
- php: >=7.0
- ext-bcmath: *
Requires (Dev)
- phpunit/phpunit: 6.0.*
This package is auto-updated.
Last update: 2025-12-07 17:24:28 UTC
README
A PHP library to work with huge fractions
Prerequisites
- PHP version >= 7.0.0
Installation
In your project folder:
composer require rsctd/huge-fraction
Usage
require_once __DIR__.'/../vendor/autoload.php'; use Rsctd\HugeFraction\Fraction; $fraction = Fraction::fromString('3 2/5'); var_dump($fraction);
Running tests
To run the tests locally, run the command
composer test
Reference
Thanks for https://github.com/phospr/fraction