PHPackages                             yuloh/bccomp-polyfill - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yuloh/bccomp-polyfill

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

yuloh/bccomp-polyfill
=====================

4126.2k↑423.2%[1 issues](https://github.com/matt-allan/bccomp-polyfill/issues)PHP

Since Aug 22Pushed 9y agoCompare

[ Source](https://github.com/matt-allan/bccomp-polyfill)[ Packagist](https://packagist.org/packages/yuloh/bccomp-polyfill)[ RSS](/packages/yuloh-bccomp-polyfill/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

BCComp Polyfill
===============

[](#bccomp-polyfill)

A polyfill for the `bcmath` function, `bccomp`.

Why?
----

[](#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
-------

[](#install)

```
composer require yuloh/bccomp-polyfill
```

Usage
-----

[](#usage)

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9440455?v=4)[Matt A](/maintainers/matt-allan)[@matt-allan](https://github.com/matt-allan)

### Embed Badge

![Health badge](/badges/yuloh-bccomp-polyfill/health.svg)

```
[![Health](https://phpackages.com/badges/yuloh-bccomp-polyfill/health.svg)](https://phpackages.com/packages/yuloh-bccomp-polyfill)
```

###  Alternatives

[ph-7/html-to-text

Lightweight package to convert HTML code to plain text (handy for plain text email format).

129.3k7](/packages/ph-7-html-to-text)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
