2017 © Pedro Peláez
 

library xml-tools

Several XML tools for PHP

image

metasyntactical/xml-tools

Several XML tools for PHP

  • Sunday, April 5, 2015
  • by dkreuer
  • Repository
  • 2 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MetaSyntactical XML Tools

Build Status Downloads this Month Latest stable Latest dev, (*1)

Several tools for handling of XML files in PHP. Currently includes the following tools:, (*2)

  • XML Stream Reader (with callable ability)

Install

Using Composer

Require the library using composer:, (*3)

$ composer require metasyntactical/xml-tools

Usage

XML Stream Reader


use MetaSyntactical\Xml\Reader\XmlStreamReader; use MetaSyntactical\Xml\Reader\XmlPath; use DOMElement; use MetaSyntactical\Xml\XmlStream\FileXmlStream; $reader = new XmlStreamReader(); // register callables $reader->registerCallback( new XmlPath("/example/node"), function (DOMElement $element) { echo "Match"; } } // parse file $reader->parse(new FileXmlStream("/path/to/xml/file.xml");

Contribute

You are very welcome to contribute to this component. Please follow the information found in (CONTRIBUTE.md)[CONTRIBUTE.md]., (*4)

The Versions

05/04 2015

dev-master

9999999-dev

Several XML tools for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Kreuer

05/04 2015
05/04 2015