rmccue / wp-parser
Static code parser for WordPress source.
Requires
- php: >=7.4
- composer/installers: ^2.0
- erusev/parsedown: ~1.7
- phpdocumentor/reflection: ^3.0@dev
- phpdocumentor/reflection-docblock: dev-release/2.x as 2.0.5
- psr/log: ~1.0
- scribu/lib-posts-to-posts: dev-master@dev
- scribu/scb-framework: dev-master@dev
Requires (Dev)
- phpunit/phpunit: ^9.6
- spatie/phpunit-watcher: ^1.23
- yoast/phpunit-polyfills: ^4.0
This package is auto-updated.
Last update: 2026-07-24 17:28:05 UTC
README
WP-Parser is the parser for creating the new code reference at developer.wordpress.org. It parses the inline documentation and produces custom post type entries in WordPress.
We are currently looking for contributors to help us complete the work on the parser.
There is a guide to developing for developer.wordpress.org in the WordPress documentation handbook.
Requirements
Development
Clone the repository and set up the development environment:
git clone https://github.com/WordPress/phpdoc-parser.git
cd phpdoc-parser
npm ci
composer install
npm run setup
WordPress is available at http://localhost:8888.
Tests
For a test-only setup:
composer install
npm run test:phpunit:setup
npm test
If the development environment was set up with npm run setup, only npm test is needed.
Running the parser
Activate the plugin first:
wp plugin activate phpdoc-parser
In your site's directory:
wp parser create /path/to/source/code --user=<id|login>