PHP Classes

Whooks: Implement hooks and filters like in WordPress

Recommend this page to a friend!
  Info   View files Documentation   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 67 All time: 10,326 This week: 660Up
Version License PHP version Categories
whooks 1.0MIT/X Consortium ...5PHP 5, Language, Blogs


This package can implement hooks and filters like in WordPress.

It provides a class that can register callback hook functions for given actions, as well filters for specific actions that can be called when those actions happen in an application.

The package also provides global functions with the same names and functionality to those provided in WordPress for registering and calling hooks and filters.

Picture of Miraz Mac
  Performance   Level  
Name: Miraz Mac <contact>
Classes: 13 packages by
Country: Bangladesh Bangladesh
Age: 29
All time rank: 201429 in Bangladesh Bangladesh
Week rank: 286 Up6 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 5x



Whooks is a standalone object oriented port of WordPress Hooks Library. Apart from the object oriented code, whooks also has polyfill for Wordpress hooking functions.

Install via composer

composer require mirazmac/whooks


  • @todo Write tests ( I wonder when I'll write 'em :3 )
  • @todo Write documentation

  Files folder image Files  
File Role Description
Files folder imagesrc (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file Functions.php Aux. Auxiliary script
  Plain text file Whooks.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,326
This week:660Up