https://github.com/hjbdev/php-wordpress-xml-parser
Parses WordPress WXR Files and presents them as a nice array.
https://github.com/hjbdev/php-wordpress-xml-parser
parser php wordpress wxr xml
Last synced: 14 days ago
JSON representation
Parses WordPress WXR Files and presents them as a nice array.
- Host: GitHub
- URL: https://github.com/hjbdev/php-wordpress-xml-parser
- Owner: hjbdev
- License: gpl-2.0
- Created: 2021-07-14T18:57:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-14T20:01:07.000Z (over 4 years ago)
- Last Synced: 2025-12-22T09:28:51.733Z (about 1 month ago)
- Topics: parser, php, wordpress, wxr, xml
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-wordpress-xml-parser
Parses WordPress WXR Files and presents them as a nice array.
## Usage
```php
use HJBDev\PHPWordpressXMLParser\Parser;
$output = Parser::parse(__DIR__. 'path/to/xml/file');
```
This is essentially a framework-agnostic version of the [Wordpress Importer](https://github.com/WordPress/wordpress-importer/blob/master/src/parsers/class-wxr-parser-xml.php) and as such the license has to be GNU GPLv2.