All Projects â†’ laravie â†’ Parser

laravie / Parser

Licence: mit
📜 XML Document Parser for PHP

Projects that are alternatives of or similar to Parser

Node Xml2js
XML to JavaScript object converter.
Stars: ✭ 4,402 (+2474.27%)
Mutual labels:  xml-parser
Cheatyxml
CheatyXML is a Swift framework designed to manage XML easily
Stars: ✭ 23 (-86.55%)
Mutual labels:  xml-parser
Dart Xml
Lightweight library for parsing, traversing, and transforming XML in Dart.
Stars: ✭ 139 (-18.71%)
Mutual labels:  xml-parser
Quick Xml
Rust high performance xml reader and writer
Stars: ✭ 480 (+180.7%)
Mutual labels:  xml-parser
Fuzi
A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
Stars: ✭ 894 (+422.81%)
Mutual labels:  xml-parser
Xslt Processor
A JavaScript XSLT processor without native library dependencies
Stars: ✭ 50 (-70.76%)
Mutual labels:  xml-parser
Swiftyxmlparser
Simple XML Parser implemented in Swift
Stars: ✭ 413 (+141.52%)
Mutual labels:  xml-parser
Xml2lua
XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
Stars: ✭ 150 (-12.28%)
Mutual labels:  xml-parser
Xylophone
Xylophone
Stars: ✭ 23 (-86.55%)
Mutual labels:  xml-parser
Sax Wasm
The first streamable, fixed memory XML, HTML, and JSX parser for WebAssembly.
Stars: ✭ 89 (-47.95%)
Mutual labels:  xml-parser
Libexpat
🌿 Expat library: Fast streaming XML parser written in C; in the process of migrating from SourceForge to GitHub
Stars: ✭ 549 (+221.05%)
Mutual labels:  xml-parser
Easyxml
Simplifies parsing and modifying of (huge) XML streams (files) based on the StAX parser with combination of JAXB or JDom2
Stars: ✭ 6 (-96.49%)
Mutual labels:  xml-parser
Oga
Read-only mirror of https://gitlab.com/yorickpeterse/oga
Stars: ✭ 1,147 (+570.76%)
Mutual labels:  xml-parser
Xmlcoder
Easy XML parsing using Codable protocols in Swift
Stars: ✭ 460 (+169.01%)
Mutual labels:  xml-parser
Xmlbuilder2
An XML builder for node.js
Stars: ✭ 143 (-16.37%)
Mutual labels:  xml-parser
Camaro
camaro is an utility to transform XML to JSON, using Node.js binding to native XML parser pugixml, one of the fastest XML parser around.
Stars: ✭ 438 (+156.14%)
Mutual labels:  xml-parser
Xml Js
Converter utility between XML text and Javascript object / JSON text.
Stars: ✭ 874 (+411.11%)
Mutual labels:  xml-parser
Didom
Simple and fast HTML and XML parser
Stars: ✭ 1,939 (+1033.92%)
Mutual labels:  xml-parser
Woodstox
The gold standard Stax XML API implementation. Now at Github.
Stars: ✭ 145 (-15.2%)
Mutual labels:  xml-parser
Android Gpx Parser
A library to parse XML Gpx files, built for Android.
Stars: ✭ 79 (-53.8%)
Mutual labels:  xml-parser

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.

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

Imagine if you can parse

<api>
    <user followers="5">
        <id>1</id>
        <email>[email protected]</email>
    </user>
</api>

to

<?php

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

by just writing this:

<?php

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' => 'user.id'],
    'email' => ['uses' => 'user.email'],
    'followers' => ['uses' => 'user::followers'],
]);

Installation

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"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].