Skip to content
XML Document Parser for PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests/Xml Add support for phpunit 8. Feb 13, 2019
.coveralls.yml Add additional CI. Dec 18, 2015
.gitattributes Rename changelog. Apr 30, 2018
.gitignore Update configuration. Sep 13, 2018
.php_cs Update deps. Feb 14, 2018
.scrutinizer.yml Add additional CI. Dec 18, 2015
.travis.yml Rename file. Sep 12, 2018 Prepare v2.0.1 release. Mar 29, 2019
LICENSE Add readme and license. Dec 18, 2015
composer.json Add support for phpunit 8. Feb 13, 2019
phpunit.xml Update contracts. Apr 18, 2018

XML Document Parser PHP

Parser Component is a framework agnostic package that provide a simple way to parse XML to array without having to write a complex logic.

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

Imagine if you can parse

    <user followers="5">


$user = [
    'id' => '1',
    'email' => '',
    'followers' => '5'

by just writing this:

use Laravie\Parser\Xml\Reader;
use Laravie\Parser\Xml\Document;

$xml = (new Reader(new Document()))->load('path/to/above.xml');

$user = $xml->parse([
    'id' => ['uses' => ''],
    'email' => ['uses' => ''],
    'followers' => ['uses' => 'user::followers'],


To install through composer, simply put the following in your composer.json file:

    "require": {
        "laravie/parser": "^2.0"

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require "laravie/parser=^2.0"
You can’t perform that action at this time.