Download the PHP package dsijak/hook without Composer
On this page you can find all versions of the php package dsijak/hook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor dsijak
Package hook
Short Description Basically, does what WP hooks do. Without any unnecessary overcomplicated features.
License MIT
Package hook
Short Description Basically, does what WP hooks do. Without any unnecessary overcomplicated features.
License MIT
Please rate this library. Is it a good library?
Informations about the package hook
Dsijak Hook
Basically, does what WP hooks do. Without any unnecessary overcomplicated features. You assign functions to specific key string and later when you call that key all functions are executed in order you set with priority argument.
Install
composer require dsijak/hook
Usage
Add functions to keyword 'alpha':
dsijak\hook('alpha', function(){ print "hello alpha text 1!";}, 1);
dsijak\hook('alpha', function(){ print "hello alpha text 2!";}, 2);
Call keyword 'alpha':
dsijak\hook('alpha');
Get number of 'hooks':
dsijak\hook();
Licence
MIT
All versions of hook with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package dsijak/hook contains the following files
Loading the files please wait ....