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 This week: 1All time: 10,307 This week: 560Up
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: 52 Up1 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  
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  /  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  
 100%
Total:67
This week:1
All time:10,307
This week:560Up