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 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 45 This week: 1All time: 9,592 This week: 372Up
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: 8 packages by
Country: Bangladesh Bangladesh
Age: 24
All time rank: 262536 in Bangladesh Bangladesh
Week rank: 87 Up2 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 2x

 

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:45
This week:1
All time:9,592
This week:372Up