PHPackages                             blockify/hooks - 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. blockify/hooks

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

blockify/hooks
==============

Blockify hooks package.

083PHP

Since May 21Pushed 2y agoCompare

[ Source](https://github.com/blockifywp/hooks)[ Packagist](https://packagist.org/packages/blockify/hooks)[ RSS](/packages/blockify-hooks/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Blockify Hooks
==============

[](#blockify-hooks)

Hook methods by comment annotation in docblock.

Based on Hook Annotations by Viktor Szépe -

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

[](#installation)

```
composer require blockify/hooks
```

Usage
-----

[](#usage)

### PHP

[](#php)

First, require Composer's autoloader and then register the hooks with WordPress:

```
require_once __DIR__ . '/vendor/autoload.php';
```

Add hook tag and optional priority to method docblock:

```
class MyPlugin
{
	/**
	 * Enqueue scripts.
	 *
	 * @hook wp_enqueue_scripts 12
	 */
	public function enqueueScripts()
	{
		wp_enqueue_script('my-script', 'path/to/my-script.js', [], null, true);
	}
}
```

Then, call the `annotations` method on the class:

```
use Blockify\Hooks\Hook;

$my_class = new MyPlugin();

Hook::annotations( $my_class );
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/6715581?v=4)[Blockify](/maintainers/blockify)[@blockify](https://github.com/blockify)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/blockify-hooks/health.svg)

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

###  Alternatives

[whitecube/laravel-sluggable

Generate slugs for your models automatically - even with translated attributes

2031.0k](/packages/whitecube-laravel-sluggable)[vendic/hyva-checkout-hide-business-fields

Hyvä checkout module to hide business fields for consumers

1353.2k1](/packages/vendic-hyva-checkout-hide-business-fields)

PHPackages © 2026

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