johnbillion / wp-parser-lib
File scanning and hook parsing functionality from WP Parser.
Installs: 260 573
Dependents: 2
Suggesters: 0
Security: 0
Stars: 16
Watchers: 1
Forks: 1
Open Issues: 2
Requires
- php: >=5.4
- composer/installers: ~1.0
- erusev/parsedown: ~1.7
- phpdocumentor/reflection: ~3.0
This package is auto-updated.
Last update: 2024-11-10 22:23:04 UTC
README
This package contains the file scanning and hook parsing functionality from WP Parser.
I did not write this code. I just abstracted it so it can be used independently of the WP Parser WordPress plugin.
Requirements
- PHP 5.4+
- Composer
Installation
composer require wp-hooks/parser
Usage
$files = \WP_Parser\get_wp_files( $path ); $output = \WP_Parser\parse_files( $files, $path );
See wp-hooks/generator as a full usage example.