https://github.com/wp-hooks/parser
File scanning and hook parsing functionality for WordPress core, plugins, and themes
https://github.com/wp-hooks/parser
Last synced: 6 months ago
JSON representation
File scanning and hook parsing functionality for WordPress core, plugins, and themes
- Host: GitHub
- URL: https://github.com/wp-hooks/parser
- Owner: wp-hooks
- Created: 2019-11-25T21:39:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T21:42:08.000Z (10 months ago)
- Last Synced: 2024-10-31T11:46:15.457Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 1.03 MB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WP Parser Lib
This package contains the file scanning and hook parsing functionality from [WP Parser](https://github.com/WordPress/phpdoc-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](https://getcomposer.org/)## Installation
```bash
composer require wp-hooks/parser
```## Usage
```php
$files = \WP_Parser\get_wp_files( $path );
$output = \WP_Parser\parse_files( $files, $path );
```See [wp-hooks/generator](https://github.com/wp-hooks/generator) as a full usage example.