2017 © Pedro Peláez
 

library hook

php hook library

image

vestin/hook

php hook library

  • Friday, April 7, 2017
  • by Vestin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Hook

Hook library inspired by * ryanhs/hook * Thinkphp Hook, (*1)

Installation

composer require vestin/hook

Example, (*2)

namespace App;
use Vestin\Hook\Target;
class DoneTarget implement Target{
    public function exec(){
        echo 'bye';
    }
}
require 'vendor/autoload.php';
use Vestin\Hook\Hook;

Hook::on('init', function(){ echo 'hello'; });
Hook::on('done', 'App\DoneTarget');
/*
 * other code you need
*/
Hook::call('init'); // see 'hello';
Hook::call('done'); // see 'bye';

License

MIT, (*3)

The Versions

07/04 2017

dev-master

9999999-dev

php hook library

  Sources   Download

MIT

The Development Requires

by Avatar Vestin

07/04 2017

1.0

1.0.0.0

php hook library

  Sources   Download

MIT

The Development Requires

by Avatar Vestin