PHPackages                             mailmug/corefill - 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. mailmug/corefill

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

mailmug/corefill
================

C-based Symfony polyfill alternative for PHP, delivering native performance.

10C

Since Dec 24Pushed 4mo agoCompare

[ Source](https://github.com/mailmug/corefill)[ Packagist](https://packagist.org/packages/mailmug/corefill)[ RSS](/packages/mailmug-corefill/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Corefill
========

[](#corefill)

**Corefill** is a high-performance **C-based polyfill extension for PHP**, designed to provide missing core functions, language features, and standard library behavior across different PHP versions — **implemented natively in C for speed, consistency, and lower memory overhead**.

Unlike userland polyfills written in PHP, Corefill operates at the **Zend Engine level**, offering near-native performance and deeper integration with PHP internals.

---

Why Corefill?
-------------

[](#why-corefill)

Popular polyfill libraries (such as Symfony Polyfills) are written in PHP. While extremely useful, they:

- Add runtime overhead
- Increase memory usage
- Cannot hook deeply into Zend internals
- Behave differently than true core implementations

**Corefill solves this by implementing polyfills directly in C.**

### Key Advantages

[](#key-advantages)

- ⚡ Native performance
- 🧠 Lower memory usage
- 🔧 Zend Engine–level integration
- 🔄 Consistent behavior across PHP versions
- 🧩 Drop-in replacement for missing core features

---

Goals
-----

[](#goals)

- Provide **missing PHP core functions** in older PHP versions
- Backport **newer PHP features** where feasible
- Offer **consistent behavior** across 8.x, and beyond
- Act as a **foundation extension** for other C extensions
- Reduce dependency on heavy userland polyfills

---

What Can Be Polyfilled?
-----------------------

[](#what-can-be-polyfilled)

Corefill focuses on features that are:

- Frequently polyfilled in PHP userland
- Performance-critical
- Safe to implement in C

### Examples

[](#examples)

- Missing core functions
- String helpers
- Array helpers
- Hash / crypto helpers
- Language behavior adjustments
- Internal constants
- Engine quirks across versions

---

Supported PHP Versions
----------------------

[](#supported-php-versions)

PHP VersionStatusPHP 8.0+✅ SupportedPHP 8.1+✅ SupportedPHP 8.2+✅ SupportedPHP 8.3+✅ SupportedPHP 8.4+✅ SupportedPHP 8.5+✅ Supported---

Installation
------------

[](#installation)

```
pie install mailmug/corefill
```

### From Source

[](#from-source)

```
git clone https://github.com/yourname/corefill.git
cd corefill
phpize
./configure
make
sudo make install
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance50

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

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/1304b2cd7160669b8a298aae25b96c6865022e81a69089ac3d1d242ff25c9164?d=identicon)[mailmug](/maintainers/mailmug)

---

Top Contributors

[![arshidkv12](https://avatars.githubusercontent.com/u/6806645?v=4)](https://github.com/arshidkv12 "arshidkv12 (9 commits)")[![mailmug](https://avatars.githubusercontent.com/u/177085882?v=4)](https://github.com/mailmug "mailmug (3 commits)")

### Embed Badge

![Health badge](/badges/mailmug-corefill/health.svg)

```
[![Health](https://phpackages.com/badges/mailmug-corefill/health.svg)](https://phpackages.com/packages/mailmug-corefill)
```

###  Alternatives

[fbf/laravel-contact-form

A Laravel 4 package for adding a simple contact form to a website

141.1k](/packages/fbf-laravel-contact-form)

PHPackages © 2026

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