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
=====================

4124.7k—8.3%[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 1mo 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

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity33

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://www.gravatar.com/avatar/a2687baf734ad8beb4dcc84d936ab41a500412e0aad55ab5a15a2205cacee15f?d=identicon)[matt-allan](/maintainers/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

[zaporylie/composer-drupal-optimizations

Composer plugin to improve composer performance for Drupal projects

14010.0M94](/packages/zaporylie-composer-drupal-optimizations)[whitecube/laravel-cookie-consent

Register, configure and ask for cookies consent in a EU-compliant way.

489563.9k1](/packages/whitecube-laravel-cookie-consent)[muhamadrezaar/highcharts

Laravel Highcarts Packages

3146.7k](/packages/muhamadrezaar-highcharts)[jarednova/mesh

package to programitcaily create content for WordPress

186.5k5](/packages/jarednova-mesh)

PHPackages © 2026

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