PHPackages                             themeplate/hook - 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. themeplate/hook

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

themeplate/hook
===============

Advanced wrapper for filters

v1.1.0(1y ago)026GPL-3.0-onlyPHPPHP ^7.4|^8.2

Since Apr 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ThemePlate/Hook)[ Packagist](https://packagist.org/packages/themeplate/hook)[ RSS](/packages/themeplate-hook/feed)WikiDiscussions master Synced 1w ago

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

ThemePlate Hook
===============

[](#themeplate-hook)

Usage
-----

[](#usage)

```
use ThemePlate\Hook;

// Hook::( ,  )
Hook::append( 'sample_filter', 'ing' );
Hook::prepend( 'sample_filter', 're-' );
Hook::return( 'sample_filter', 'this!' );
Hook::pluck( 'sample_filter', 'i' );
Hook::replace( 'sample_filter', '!', '...' );
Hook::insert( 'sample_filter', 'u', 2 );
Hook::once( 'sample_filter', array( 'pluck', 'th' ) );
```

> ^Line by line output with initial value **test**

ACTIONVALUERESULT #1RESULT #2appendingtestingtestingprependre-re-testingre-testingreturnthis!this!this!pluckiths!ths!replace\["!","..."\]ths...ths...insert\["u",2\]thus...thus...once\["pluck","th"\]us...thus...```
// apply_filters( ,  );
apply_filters( 'sample_filter', 'test' ); //
apply_filters( 'sample_filter', 'test' ); //
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance44

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

Established project with proven stability

 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

Every ~256 days

Recently: every ~185 days

Total

8

Last Release

442d ago

Major Versions

v0.6.0 → v1.0.02023-02-24

PHP version history (4 changes)v0.1.0PHP ^7.2

v0.2.0PHP ^7.2|^8.0

v1.0.0PHP ^7.4|^8.0

v1.1.0PHP ^7.4|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/91095d431958c79a7384d515efec2686ca3cd1e1e1a5a42b680309b8e855355a?d=identicon)[kermage](/maintainers/kermage)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/themeplate-hook/health.svg)

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

###  Alternatives

[hanneskod/classtools

Find, extract and process classes from file system

1319.1M40](/packages/hanneskod-classtools)

PHPackages © 2026

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