PHPackages                             simones/partial - 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. simones/partial

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

simones/partial
===============

Function partial application

1.0.0(9y ago)220MITPHPPHP &gt;=5.5.0

Since Sep 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SimoneS93/Partial)[ Packagist](https://packagist.org/packages/simones/partial)[ RSS](/packages/simones-partial/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/fc82b9d81c1d19f9676110e602a3f71ea757dbc9d5de0626c1f2b23a97c3042f/68747470733a2f2f7472617669732d63692e6f72672f53696d6f6e655339332f5061727469616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SimoneS93/Partial)

Apply partial arguments to your functions.

Install
-------

[](#install)

```
$ composer require simones/partial
```

Usage
-----

[](#usage)

Bind a subset of a function's arguments and get a new function back that accepts the remaining arguments. It is most useful if you write functional programming or don't like using `use` with anonymous functions. You can get a `Partial` instance via instantiation or with the `partial` helper.

Here are some examples (for more, head to the spec):

```
// one-argument binding
$hello = partial('printf', ['Hello, %s']);
$hello('world') // print "Hello, world"
// or
$hello->call('world')

// multiple arguments binding
$countdown = partial('printf', ['%s, %s, %s, go!', 'Three']);
$countdown('Two', 'One'); // print "Three, Two, One, go!"

// you can skip argument, and they will be filled on call time
$countdown = partial('printf', ['%s, %s, %s, go!', Partial::SKIP, 'Two']);
$countdown('Trhee', 'One'); // print "Three, Two, One, go!"
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3573d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/534436?v=4)[SimoneS](/maintainers/SimoneS)[@simones](https://github.com/simones)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/simones-partial/health.svg)

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

###  Alternatives

[kornrunner/blurhash

Pure PHP implementation of Blurhash

7091.8M28](/packages/kornrunner-blurhash)

PHPackages © 2026

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