2017 © Pedro Peláez
 

library hooks

PHP Hooks System

image

skopek/hooks

PHP Hooks System

  • Saturday, May 5, 2018
  • by skopek
  • Repository
  • 1 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

hooks

PHP Hooks System, (*1)

Installing

Install using Composer., (*2)

$ composer require skopek/hooks

Usage Action

$hooks = new Skopek\Hooks\Manager;

$hooks->action->add("header", function() {
    echo "Hello!";
});

$hooks->action->run("header");

Usage Filter

$hooks = new Skopek\Hooks\Manager;

$hooks->filter->add("header", function($value) {
    return $value . " World!";
});

echo $hooks->filter->apply("header", "Hello");

The Versions

05/05 2018

dev-master

9999999-dev

PHP Hooks System

  Sources   Download

MIT

The Development Requires

by Mateusz Skopowski

filter action hooks

05/06 2016

v0.2.1

0.2.1.0

PHP Hooks System

  Sources   Download

MIT

The Development Requires

by Mateusz Skopowski

filter action hooks

23/04 2016

v0.2

0.2.0.0

PHP Hooks System

  Sources   Download

MIT

The Development Requires

by Mateusz Skopowski

filter action hooks

08/04 2016

v0.1

0.1.0.0

PHP Hooks System

  Sources   Download

MIT

The Development Requires

by Mateusz Skopowski

filter action hooks