PHP Classes

Whooks: Implement hooks and filters like in WordPress

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

Author

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: 201629 in Bangladesh Bangladesh
Week rank: 170 Up2 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 5x

Documentation

Whooks.png

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

Todos

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

  Files folder image Files (5)  
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 README.md Doc. Documentation

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:67
This week:0
All time:10,346
This week:660Up