• Stars
    star
    224
  • Rank 172,209 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“œ XML Document Parser for PHP

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"

More Repositories

1

query-filter

πŸ” Database/Eloquent Query Builder filters for Laravel
PHP
74
star
2

serialize-queries

Serializable Laravel Query Builder
PHP
66
star
3

authen

🚦 User Authentication Identifiers for Laravel
PHP
64
star
4

html

πŸ”¨ HTML and Form Builders for the Laravel Framework
PHP
34
star
5

streaming

πŸ“» Redis Async Streaming for PHP
PHP
25
star
6

codex

πŸ€– PHP library for building API Client SDK for PHP
PHP
22
star
7

geotools

🌏 Geo-related tools PHP 7+ library
PHP
18
star
8

api

πŸ”¨ An alternative RESTful API package for the Laravel and Lumen frameworks.
PHP
14
star
9

cabinet

πŸ—„οΈ Runtime Cache for Laravel Eloquent
PHP
11
star
10

predis-async

πŸ”¨ Asynchronous PHP client library for Redis built on top of ReactPHP
PHP
6
star
11

codex-security

πŸ€– Security Component for Laravie Codex
PHP
5
star
12

eloquent-dynamodb

πŸ—ƒοΈ Eloquent syntax for DynamoDB
PHP
5
star
13

dhosa

πŸ”Œ β€Ž Hot Swapping for Laravel Eloquent
PHP
4
star
14

stream

πŸŽ› β€‹Β­β€Ž Common Component using ReactPHP Stream
PHP
4
star
15

quemon

Queue Monitoring Extension for Orchestra Platform
PHP
4
star
16

webhook

πŸ’¬ Webhook Client for PHP
PHP
3
star
17

profiler

πŸ“Š Profiling for Laravel
PHP
3
star
18

codex-common

πŸ€– Common PHP library for building API Client SDK for PHP
PHP
3
star
19

kurenai

πŸ“‘ Kurenai is a Markdown document parser which allows for extra metadata to be associated with the document.
PHP
3
star
20

promise

🀝 Fluent Promises with reactphp/promise
PHP
2
star
21

blueprint

πŸ”¨ Generate valid API Blueprint documentation
PHP
1
star