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 2mo ago

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 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

1847d 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

[typo3/cms-composer-installers

TYPO3 CMS Installers

6113.7M52](/packages/typo3-cms-composer-installers)[in2code/powermail

Powermail is a well-known, editor-friendly, powerful and easy to use mailform extension for TYPO3 with a lots of features

982.5M38](/packages/in2code-powermail)[in2code/powermail_cond

Add conditions (via AJAX) to powermail forms for fields and pages

10530.6k](/packages/in2code-powermail-cond)[jweiland/events2

Events 2 - Create single and recurring events

2062.4k2](/packages/jweiland-events2)[gilbertsoft/typo3-core-patches

Easily manage TYPO3 Core patches with Composer.

1453.1k](/packages/gilbertsoft-typo3-core-patches)[quellenform/t3x-iconpack

Provides an iconpack-registry for custom iconpacks.

1542.7k25](/packages/quellenform-t3x-iconpack)

PHPackages © 2026

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