2017 © Pedro Peláez
 

library simple-xml-reader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

image

suramon/simple-xml-reader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  • Monday, June 26, 2017
  • by SuRaMoN
  • Repository
  • 1 Watchers
  • 8 Stars
  • 31,436 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

SimpleXmlReader

Interface for the PHP XML Pull parser XMLReader that adds super-simplified xpath functionality. This is ideal for reading huge xml files without the memory costs of other xml libraries (eg SImpleXMLElement)., (*1)

Build Status Build Status, (*2)

Example

source code: https://github.com/SuRaMoN/simplexmlreader/blob/master/examples/simple-example.php, (*3)

$xml = SimpleXmlReader::openFromString('
     <root>
        <animal type="cat">
            <hastail>yes</hastail>
        </animal>
        <animal type="dog">
            <hastail>yes</hastail>
        </animal>
        <animal type="kakariki">
            <hastail>no</hastail>
        </animal>
    </root>
');

foreach($xml->path('root/animal') as $animal) {
    // $animal is of type SimpleXMLElelent
    // only the current iterated $animal is in memory, so huge xml files can be read, without much memory consumption
    echo "A {$animal->attributes()->type} has a tail? {$animal->hastail}!\n";
} 

The Versions

26/06 2017

dev-master

9999999-dev https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3

 

The Development Requires

26/06 2017

1.2.2

1.2.2.0 https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3

 

The Development Requires

09/08 2016

1.2.1

1.2.1.0 https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3

 

The Development Requires

07/08 2015

1.2.0

1.2.0.0 https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3

 

The Development Requires

10/04 2015

1.1.1

1.1.1.0 https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3

 

The Development Requires

03/05 2014

1.1.0

1.1.0.0 https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3

 

The Development Requires

03/10 2013

1.0.0

1.0.0.0 https://github.com/SuRaMoN/SimpleXmlReader

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

  Sources   Download

Do What The Fuck You Want To Public License

The Requires

  • php >=5.3