Yannick Warnier 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
..
src 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
tests 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
.gitignore 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
LICENSE.md 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
README.md 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
composer.json 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ
phpunit.xml.dist 76a0eae5ea Add static resources and remove tests dir for beta release 5 gadi atpakaļ

README.md

BCComp Polyfill

A polyfill for the bcmath function, bccomp.

Why?

I maintain a library that only uses bccomp, and doesn't use the rest of bcmath. I wanted to be able to work on it on machines that weren't compiled with bcmath support, so I wrote this polyfill.

Install

composer require yuloh/bccomp-polyfill

Usage

If the function bccomp does not exist in the global namespace, this library will declare it's own bccomp function.