Skip to content
This repository has been archived by the owner on Sep 29, 2018. It is now read-only.

Latest commit

 

History

History
26 lines (15 loc) · 847 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 847 Bytes

Hook Finder

A tool to easily locate all hooks within a MyBB package - either the core of MyBB or a custom plugin.

This tool will traverse all PHP files within a given directory, looking for plugin hooks. All plugin hooks will then be written to a HTML file of your choosing.

Installation

You can download pre-built binaries for Windows, OS X and Linux from the Downloads page, or install the project using go:

go get github.com/mybb/hook-finder

Usage

The hook finder requires two parameters:

  • The path to the project to scan for hooks
  • The output file name

You run the tool as follows:

hook-finder -i /pat/to/mybb/root -o /path/to/hooks.html

The tool will then scan all of the PHP files in the specified directory and locate all available hooks which will then be written to the specified file.