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

ActiveLibrary

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

Blockify hooks package.

082PHP

Since May 21Pushed 1y agoCompare

[ Source](https://github.com/blockifywp/hooks)[ Packagist](https://packagist.org/packages/blockify/hooks)[ RSS](/packages/blockify-hooks/feed)WikiDiscussions main Synced 1mo 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

16

—

LowBetter than 5% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/baa8d5e8f35d37d8cbce60c8604aede77a961b13311acfbad9a227ccf00e99dc?d=identicon)[blockify](/maintainers/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)
```

PHPackages © 2026

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