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

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

voku/php-hooks
==============

A fork of the WordPress filters hook system rolled in to a class to be ported into any PHP-based system

0.2.12(2mo ago)7739.7k↓26.4%16[1 PRs](https://github.com/voku/php-hooks/pulls)3GPL-3.0-onlyPHPPHP &gt;=7.1.0CI passing

Since Jan 28Pushed 1mo ago8 watchersCompare

[ Source](https://github.com/voku/php-hooks)[ Packagist](https://packagist.org/packages/voku/php-hooks)[ Docs](http://github.com/voku/php-hooks/)[ RSS](/packages/voku-php-hooks/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (24)Used By (3)

[![CI](https://github.com/voku/php-hooks/actions/workflows/ci.yml/badge.svg)](https://github.com/voku/php-hooks/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/ef4ac849896ad121c6ccc368de7d40721e476a67f001f3685a531a7ccc2a633c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f766f6b752f7068702d686f6f6b732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/voku/php-hooks?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/a1271f3f2b3338bc0259ab6d190ec38516d30cc0083ef1f87aac2de85a9b3438/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3666366230633663396634653462633861633063393135396664383661646232)](https://www.codacy.com/app/voku/php-hooks)[![Latest Stable Version](https://camo.githubusercontent.com/2b3e54d25ed38613c6be47d4b953d28e0171544e6d0b248e916c333499de442c/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f7068702d686f6f6b732f762f737461626c65)](https://packagist.org/packages/voku/php-hooks)[![Total Downloads](https://camo.githubusercontent.com/16471a3cde5ae2e90822b342e491f6fe4b4de94a41915dcbbe4659ca36a93c49/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f7068702d686f6f6b732f646f776e6c6f616473)](https://packagist.org/packages/voku/php-hooks)[![License](https://camo.githubusercontent.com/440858040111cc336d02915eda29b4a43e349fe4d86731a6ea5a9c755702a751/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f7068702d686f6f6b732f6c6963656e7365)](https://packagist.org/packages/voku/php-hooks)

PHP-Hooks
=========

[](#php-hooks)

The PHP Hooks Class is a fork of the WordPress filters hook system rolled in to a class to be ported into any php based system

- This class is heavily based on the WordPress plugin API and most (if not all) of the code comes from there.

How to install?
===============

[](#how-to-install)

```
composer require voku/php-hooks
```

How to use?
===========

[](#how-to-use)

We start with a simple example ...

```
