PHPackages                             benjy/tap - 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. benjy/tap

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

benjy/tap
=========

0.0.1(8y ago)43.2k↓50%MITPHP

Since Aug 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/benjy/tap)[ Packagist](https://packagist.org/packages/benjy/tap)[ RSS](/packages/benjy-tap/feed)WikiDiscussions master Synced 2mo ago

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

Installation
============

[](#installation)

```
composer require benjy/tap

```

Usage
-----

[](#usage)

Without a callback:

```
$person = new Person();
tap($person)
    ->update(['name' => 'Ben'])
    ->save();

```

With a callback:

```
$person = new Person();
tap($person, function ($person) {
    $person->update(['name' => 'Ben'])
    $person->save();
});

```

Way more useful examples here:

Credits
-------

[](#credits)

The original concept for this method comes from Ruby.

This code was taken straight from the Laravel framework where I initially discovered this concept. I wanted to use it in other applications so I broke it out into a separate library. Thanks to [Laravel](https://laravel.com/)

License
-------

[](#license)

This library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3193d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6779957256d5d5129ea3c73e3c7e14c197eab6d3adcf9797203bf7c5b6a194a5?d=identicon)[benjy](/maintainers/benjy)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/benjy-tap/health.svg)

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

###  Alternatives

[letudiant/composer-shared-package-plugin

This composer plugin allows you to share selected packages between your projects with symlinks.

16450.9k1](/packages/letudiant-composer-shared-package-plugin)[tpoxa/shortcodes

Wordpress style shorttags support for Yii2

2313.5k](/packages/tpoxa-shortcodes)

PHPackages © 2026

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