PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2019-04-27 (9 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 53 All time: 9,672 This week: 253Up
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.

  Performance   Level  
Name: Miraz Mac <contact>
Classes: 10 packages by
Country: Bangladesh Bangladesh
Innovation award
Innovation award
Nominee: 3x

 

Details

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:53
This week:0
All time:9,672
This week:253Up