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

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

mamazu/partial-functions
========================

Applying partial functions

1.0.0(5y ago)01PHPPHP ^7.3

Since Sep 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mamazu/partial-functions)[ Packagist](https://packagist.org/packages/mamazu/partial-functions)[ RSS](/packages/mamazu-partial-functions/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

partial-function application in php
===================================

[](#partial-function-application-in-php)

This library provides a partial function interface for php.

Usage
-----

[](#usage)

The simpletest way to use it with the FunctionInvoker:

```
function f(string $greeting = 'Hello', string $name = 'you') {
    return $greeting.', '.$name;
}

echo \Mamazu\PartialFunctions\FunctionInvoker::invoke('f', ['name' => 'Anonymous']);

// Will echo "Hello, Anonymous"
```

### Object oriented

[](#object-oriented)

```
$factory = new \Mamazu\PartialFunctions\PartialFunctionFactory();
$searchInString = $factory->createForCallable('strpos');
$searchInString->apply(['haystack' => 'Hello in PHP']);

$hellopos = $searchInString->call(['needle' => 'hello']);
$phppos = $searchInString->call(['needle' => 'php']);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2057d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/faf03e1cbccf62b2e12f653a53e34bb22fc3082b47afd8663b6b333dc211b761?d=identicon)[mamazu](/maintainers/mamazu)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[lochmueller/autoloader

Automatic components loading of ExtBase extensions to get more time for coffee in the company ;) This ext is not a PHP SPL autoloader or class loader - it is better! Loads CommandController, Xclass, Hooks, FlexForms, Slots, TypoScript, TypeConverter, BackendLayouts and take care of createing needed templates, TCA configuration or translations at the right location.

19364.9k5](/packages/lochmueller-autoloader)[justintadlock/hybrid-font

Helper functions for loading font stylesheets in WordPress themes.

146.4k](/packages/justintadlock-hybrid-font)[ircmaxell/php-types

A PHP CFG Type Inference / Reconstruction Engine

361.0k](/packages/ircmaxell-php-types)

PHPackages © 2026

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