PHPackages                             bitpatroon/typo3\_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. bitpatroon/typo3\_hooks

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

bitpatroon/typo3\_hooks
=======================

Extension to easily add hooks in your own code.

v1.3.1(5y ago)06.5k1GPL-2.0-or-laterPHP

Since Oct 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bitpatroon/typo3_hooks)[ Packagist](https://packagist.org/packages/bitpatroon/typo3_hooks)[ RSS](/packages/bitpatroon-typo3-hooks/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (12)Used By (1)

typo3\_hooks
============

[](#typo3_hooks)

Hooks mechanism for TYPO3

Usage:

processHook
-----------

[](#processhook)

To call a hook, simple add the following code in any class of your code.

```
\Bitpatroon\Typo3Hooks\Helpers\HooksHelper::processHook(, , []);

```

- Class (I) can be the instance, the static reference or the classname i.e.
    - $this
    - self
    - \\VENDOR\\CALLING\_HOOK\_CLASS::class
- Hookname (II) is the name of the hook is the hook,
- Params (III) is a y reference passed array with values for the hook.

Register the hook
-----------------

[](#register-the-hook)

In your or any localconf.php, add the hook.

```
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\VENDOR\CALLING_HOOK_CLASS::class] = [
        'className' => \VENDOR\CALLED_CLASS::class
 ];

```

- CALLING\_HOOK\_CLASS is the name of the class, as specified in (I).
- CALLED\_CLASS is the name of the class, handling the hook

The class with the hook
-----------------------

[](#the-class-with-the-hook)

Add a TYPO3 class CALLED\_CLASS with the following code.

```
namespace VENDOR;

class CALLED_CLASS

    /**
     * Hook
     * @param array $params The parameter Array
     * @param object $ref   The parent object
     */
    public function MyHook(&$params, $ref)
    {

    }
}

```

Notice the $params is by reference. Changing the content affects the original array. $ref is the calling class. See (I).

Notice: Don't forget to reset the cache!

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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 ~61 days

Recently: every ~5 days

Total

10

Last Release

1897d ago

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.2.0PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17638058?v=4)[Sjoerd Zonneveld](/maintainers/bitpatroon)[@bitpatroon](https://github.com/bitpatroon)

---

Top Contributors

[![bitpatroon](https://avatars.githubusercontent.com/u/17638058?v=4)](https://github.com/bitpatroon "bitpatroon (12 commits)")

---

Tags

corehookstypo3

### Embed Badge

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

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

###  Alternatives

[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

41515.2k](/packages/wazum-sluggi)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[typo3/cms-styleguide

TYPO3 extension to showcase TYPO3 Backend capabilities

106749.2k26](/packages/typo3-cms-styleguide)[friendsoftypo3/visual-editor

TYPO3 CMS Visual Editor - Brings a modern WYSIWYG editing experience to TYPO3 CMS.

523.1k2](/packages/friendsoftypo3-visual-editor)[jweiland/events2

Events 2 - Create single and recurring events

2165.2k3](/packages/jweiland-events2)[in2code/lux

Living User eXperience - LUX - the Marketing Automation tool for TYPO3.

2156.6k1](/packages/in2code-lux)

PHPackages © 2026

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