All Projects → vyuldashev → xml-to-array

vyuldashev / xml-to-array

Licence: MIT license
A simple class to convert an xml to array

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to xml-to-array

Panthera
Data-frames & arrays on Clojure
Stars: ✭ 168 (+460%)
Mutual labels:  array
Vscode Data Preview
Data Preview 🈸 extension for importing 📤 viewing 🔎 slicing 🔪 dicing 🎲 charting 📊 & exporting 📥 large JSON array/config, YAML, Apache Arrow, Avro, Parquet & Excel data files
Stars: ✭ 245 (+716.67%)
Mutual labels:  array
js-deep-sort-object
Simple module to sort objects recursively by its keys
Stars: ✭ 19 (-36.67%)
Mutual labels:  array
Array Functions
Some handy array functions
Stars: ✭ 215 (+616.67%)
Mutual labels:  array
Staticvec
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
Stars: ✭ 236 (+686.67%)
Mutual labels:  array
Problem-Solving
This Repository consists of my solutions💡 in Python 3 to various problems in Data Structures and Algorithms.🎖️
Stars: ✭ 17 (-43.33%)
Mutual labels:  array
Metasync
Asynchronous Programming Library for JavaScript & Node.js
Stars: ✭ 164 (+446.67%)
Mutual labels:  array
all-about-node
All about Node.js
Stars: ✭ 16 (-46.67%)
Mutual labels:  array
Arr
A collection of tiny, highly performant Array.prototype alternatives
Stars: ✭ 239 (+696.67%)
Mutual labels:  array
avl array
High performance templated AVL tree using a fixed size array. Extensive test suite passing.
Stars: ✭ 33 (+10%)
Mutual labels:  array
Static Frame
Immutable and grow-only Pandas-like DataFrames with a more explicit and consistent interface.
Stars: ✭ 217 (+623.33%)
Mutual labels:  array
C Vector
A dynamic array implementation in C similar to the one found in standard C++
Stars: ✭ 234 (+680%)
Mutual labels:  array
data-structure-project
自己实现集合框架系列整理总结
Stars: ✭ 29 (-3.33%)
Mutual labels:  array
Csmodel
CSModel is a concise and efficient model framework for iOS/OSX, and provides nested Model to compare values and copy values.
Stars: ✭ 192 (+540%)
Mutual labels:  array
slimarray
SlimArray compresses uint32 into several bits, by using a polynomial to describe overall trend of an array.
Stars: ✭ 39 (+30%)
Mutual labels:  array
Algo Tree
Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
Stars: ✭ 166 (+453.33%)
Mutual labels:  array
Swift Utils
A collection of handy swift utils
Stars: ✭ 253 (+743.33%)
Mutual labels:  array
Ubigeo-Peru
Base de datos de departamentos, provincias y distritos del Perú (UBIGEO) actualizada al 2019 (El INEI ha actualizado hasta el 2016). SQL, JSON, XML, CSV, Arreglos PHP, YAML.
Stars: ✭ 113 (+276.67%)
Mutual labels:  array
DS ALGO
Data Structures and algorithms
Stars: ✭ 20 (-33.33%)
Mutual labels:  array
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+1446.67%)
Mutual labels:  array

Convert xml to an array

Latest Stable Version Build Status Total Downloads StyleCI License

This package provides a very simple class to convert an xml string to an array.

Inspired by Spatie's array-to-xml ❤️

Install

You can install this package via composer.

composer require vyuldashev/xml-to-array

Usage

use Vyuldashev\XmlToArray\XmlToArray;

$xml = '<items>
    <good_guy>
        <name>Luke Skywalker</name>
        <weapon>Lightsaber</weapon>
    </good_guy>
    <bad_guy>
        <name>Sauron</name>
        <weapon>Evil Eye</weapon>
    </bad_guy>
</items>';

$result = XmlToArray::convert($xml);

After running this piece of code $result will contain:

array:1 [
  "items" => array:2 [
    "good_guy" => array:2 [
      "name" => "Luke Skywalker"
      "weapon" => "Lightsaber"
    ]
    "bad_guy" => array:2 [
      "name" => "Sauron"
      "weapon" => "Evil Eye"
    ]
  ]
]
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].