not really hard to do

create a class class called hooks and a folder called hooks

PHP Code: 
class Hooks
{
    public function 
run($hooks)
    {
         
//each hooks should be in the directory called hooks and asub folder
         /*
              Hooks
                  - startup
                  - before_db
         */
         //$Hooks->run('before_db') would run threw all the php files on the startup_db folder and include them, all you have to do is run the specific folder at the specific time in your system.
    
}

litewarez Reviewed by litewarez on . Implementing a Hook/AddOn System in PHP? I was wondering how to do this, and I understand how I'd get it to dynamically add addons, etc. I was wondering if anyone could maybe post the basic logic of a hook system, and addon system similiar to that of vBulletin? Rating: 5