PHPackages                             alsvanzelf/gaps - 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. alsvanzelf/gaps

AbandonedArchivedLibrary

alsvanzelf/gaps
===============

Stop minding the gap. Extend php with these polyfills and missing functionality. Right now, `array\_splice\_preserve\_keys`.

01.4k1PHP

Since Feb 27Pushed 11y agoCompare

[ Source](https://github.com/lode/gaps)[ Packagist](https://packagist.org/packages/alsvanzelf/gaps)[ RSS](/packages/alsvanzelf-gaps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

gaps
====

[](#gaps)

Stop minding the gap. Extend php with these polyfills and missing functionality.

#### Filled

[](#filled)

- [`array_splice_preserve_keys()`](src/gaps.php#L7): an `array_splice` which does preverse the keys of the replacement array

#### Polyfilled

[](#polyfilled)

- [`empty_expression()`](src/poyfills.php#L9): an `empty` which works on expressions (when below PHP 5.5.0)

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

[](#installation)

[Use Composer](http://getcomposer.org/). Add `alsvanzelf/gaps` to your project's `composer.json`:

```
{
	"require": {
		"alsvanzelf/gaps": "dev-master"
	}
}
```

Start your file with

```
use alsvanzelf\gaps\gaps;
use alsvanzelf\gaps\polyfills;
```

And use the methods where you need:

```
gaps::method_name();
polyfills::method_name();
```

Contributing
------------

[](#contributing)

Pull Requests or issues are welcome!

Licence
-------

[](#licence)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/bfe07388f3ca4b0ac7725bc717893340bd7f168e44dd7ae64ee3d58874e16fde?d=identicon)[lode](/maintainers/lode)

---

Top Contributors

[![lode](https://avatars.githubusercontent.com/u/511245?v=4)](https://github.com/lode "lode (9 commits)")

### Embed Badge

![Health badge](/badges/alsvanzelf-gaps/health.svg)

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

PHPackages © 2026

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