parser maintained by orchestra
Description
XML Document Parser for Laravel and PHP
Author
Last update
2025/02/02 01:07 (9.x-dev)
License
Downloads
1 522 879
Tags
Last update
2025/02/02 01:07
License
Require
- php ^8.2
- illuminate/container ^11.0
- laravie/parser ^2.4 || ^3.0
Last update
2024/03/26 15:24
License
Require
- php ^8.2
- illuminate/container ^11.0
- laravie/parser ^2.4
Last update
2023/11/24 12:26
License
Require
- php ^8.0
- illuminate/container ^10.0
- laravie/parser ^2.3
Last update
2023/02/15 01:13
License
Require
- php ^8.0
- illuminate/container ^10.0
- laravie/parser ^2.3
Last update
2023/02/15 01:06
License
Require
- php ^8.0
- laravie/parser ^2.1.3
- illuminate/container ^9.34
Last update
2022/02/26 22:04
License
Require
- php ^8.0
- illuminate/container ^9.0
- laravie/parser ^2.1.3
Last update
2022/02/08 11:09
License
Require
- php ^8.0
- illuminate/container ^9.0
- laravie/parser ^2.1.3
Last update
2022/02/08 11:01
License
Require
- php ^7.3 || ^8.0
- illuminate/container ^8.75
- laravie/parser ^2.1.3
Last update
2021/04/17 17:50
License
Require
- php ^7.3 || ^8.0
- illuminate/container ^8.0
- laravie/parser ^2.1.2
Last update
2020/09/12 01:58
License
Require
- php >=7.3
- illuminate/container ^8.0
- laravie/parser ^2.1.2
Last update
2020/02/24 04:39
License
Require
- php >=7.2
- illuminate/container ^7.0
- laravie/parser ^2.0
Last update
2020/02/24 04:39
License
Require
- php >=7.2
- illuminate/container ^7.0
- laravie/parser ^2.0
Last update
2019/12/29 12:46
License
Require
- php >=7.2
- illuminate/container ^6.0
- laravie/parser ^2.0
Last update
2019/08/28 10:07
License
Require
- php >=7.2
- illuminate/container ^6.0
- laravie/parser ^2.0
Last update
2019/05/06 14:21
License
Require
- php >=7.1
- illuminate/container ~5.8.0
- laravie/parser ^2.0
Last update
2019/02/27 04:48
License
Require
- php >=7.1
- illuminate/container ~5.8.0
- laravie/parser ^2.0
Last update
2019/02/12 10:43
License
Require
- php >=7.1
- illuminate/container ~5.7.0
- laravie/parser ^2.0
Last update
2019/02/12 10:40
License
Require
- php >=7.1
- illuminate/container ~5.6.0
- laravie/parser ^1.2
Last update
2018/09/13 05:33
License
Require
- php >=7.1
- illuminate/container ~5.7.0
- laravie/parser ^2.0
Last update
2018/02/08 00:56
License
Require
- php >=7.1
- illuminate/container ~5.6.0
- laravie/parser ~1.2
Last update
2018/01/14 07:25
License
Require
- php >=7.0
- illuminate/container ~5.5.0
- laravie/parser ~1.2
Last update
2017/07/26 10:16
License
Require
- php >=7.0
- illuminate/container ~5.5.0
- laravie/parser ~1.2
Last update
2017/07/26 04:22
License
Require
- php >=5.6.0
- illuminate/container ~5.4.0
- laravie/parser ~1.1
Last update
2017/01/26 02:02
License
Require
- php >=5.6.0
- illuminate/container ~5.4.0
- laravie/parser ~1.1
Last update
2017/01/26 01:58
License
Require
- php >=5.6.0
- laravie/parser ~1.1
- illuminate/container ~5.3.0
Last update
2016/05/26 14:52
License
Require
- php >=5.6.0
- laravie/parser ~1.1
- illuminate/container ~5.3.0
Last update
2015/12/18 07:48
License
Require
- php >=5.5.0
- laravie/parser ~1.0
- illuminate/container ~5.2.0
Last update
2015/12/18 07:43
License
Require
- php >=5.5.0
- laravie/parser ~1.0
- illuminate/container ~5.1.0
Last update
2015/12/18 07:36
License
Require
- php >=5.4.0
- laravie/parser ~1.0
- illuminate/container 5.0.*
Last update
2015/11/24 08:56
License
Require
- php >=5.5.0
- illuminate/container ~5.2.0
- illuminate/support ~5.2.0
- paragonie/random_compat ^1.1
Last update
2015/11/14 11:16
License
Require
- php >=5.5.0
- illuminate/container ~5.1.0
- illuminate/support ~5.1.0
- paragonie/random_compat ~1.1
Last update
2015/08/26 23:28
License
Require
- php >=5.5.0
- illuminate/container ~5.1.0
- illuminate/support ~5.1.0
Last update
2015/08/26 23:14
License
Require
- php >=5.4.0
- illuminate/container 5.0.*
- illuminate/support 5.0.*
Last update
2015/06/13 03:38
License
Require
- php >=5.5.0
- illuminate/container 5.1.*
- illuminate/support 5.1.*
Last update
2015/06/13 03:35
License
Require
- php >=5.4.0
- illuminate/container 5.0.*
- illuminate/support 5.0.*
Last update
2015/05/17 13:00
License
Require
- php >=5.4.0
- illuminate/container 5.1.*
- illuminate/support 5.1.*
Last update
2015/02/05 14:15
License
Require
- php >=5.4.0
- illuminate/container 5.0.*
- illuminate/support 5.0.*
Last update
2014/06/12 17:39
License
Require
- php >=5.4.0
- illuminate/container 4.2.*
- illuminate/support 4.2.*
Last update
2014/05/30 03:35
License
Require
- php >=5.3.3
- illuminate/container 4.1.*
- illuminate/support 4.1.*
comments powered by Disqus
Parser Component is a framework agnostic package that provide a simple way to parse XML to array without having to write a complex logic.
Imagine if you can parse
<api>
<user followers="5">
<id>1</id>
<email>crynobone@gmail.com</email>
</user>
</api>
to
$user = [
'id' => '1',
'email' => 'crynobone@gmail.com',
'followers' => '5'
];
by just writing this:
use Orchestra\Parser\Xml\Facade as XmlParser;
$xml = XmlParser::load('path/to/above.xml');
$user = $xml->parse([
'id' => ['uses' => 'user.id'],
'email' => ['uses' => 'user.email'],
'followers' => ['uses' => 'user::followers'],
]);
Laravel | Parser |
---|---|
6.x | 4.x |
7.x | 5.x |
8.x | 6.x |
9.x | 7.x |
10.x | 8.x |
11.x | 9.x |
12.x | 10.x |
To install through composer, run the following command from terminal:
composer require "orchestra/parser"
Next add the service provider in config/app.php
.
'providers' => [
// ...
Orchestra\Parser\XmlServiceProvider::class,
],
You might want to add Orchestra\Parser\Xml\Facade
to class aliases in config/app.php
:
'aliases' => [
// ...
'XmlParser' => Orchestra\Parser\Xml\Facade::class,
],