2017 © Pedro Peláez
 

library xmlmatcher

Description of project xmlmatcher.

image

rafaelnajera/xmlmatcher

Description of project xmlmatcher.

  • Wednesday, March 1, 2017
  • by rafaelnajera
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

XmlMatcher

Implements a Matcher\Token that matches XML elements out of an \XmlReader, (*1)

Installation

Install the latest version with, (*2)

$ composer require rafaelnajera/xmlmatcher

Usage

Use \Matcher\Pattern and \Matcher\PatternMatcher with XmlToken objects., (*3)

XmlToken provides three factory methods:, (*4)

$token = XmlToken::elementToken('name');     // XML:  <name>
$token = XmlToken::endelementToken('name');  // XML: </name>
$token = XmlToken::textToken();              // XML: free text

Element tokens can also specify required attributes:, (*5)

$token = XmlToken::elementToken('name')
    ->withReqAttrs([ ['a', 'value'], ['b', '*']); // XML: <name a="value" b="whatever"> 

The Versions

01/03 2017

dev-master

9999999-dev http://rafaelnajera.com/xmlmatcher

Description of project xmlmatcher.

  Sources   Download

MIT

The Requires

 

regexp

01/03 2017

0.4

0.4.0.0 http://rafaelnajera.com/xmlmatcher

Description of project xmlmatcher.

  Sources   Download

MIT

The Requires

 

regexp

20/02 2017

0.3.0

0.3.0.0 http://rafaelnajera.com/xmlmatcher

Description of project xmlmatcher.

  Sources   Download

MIT

The Requires

 

regexp

19/02 2017

0.2.1

0.2.1.0 http://rafaelnajera.com/xmlmatcher

Description of project xmlmatcher.

  Sources   Download

MIT

The Requires

 

regexp

17/02 2017

0.2

0.2.0.0 http://rafaelnajera.com/xmlmatcher

Description of project xmlmatcher.

  Sources   Download

MIT

The Requires

 

regexp

17/02 2017

0.1.2

0.1.2.0 http://rafaelnajera.com/xmlmatcher

Description of project xmlmatcher.

  Sources   Download

MIT

The Requires

 

regexp

17/02 2017

0.1.1

0.1.1.0

Description of project xmlmatcher.

  Sources   Download

The Requires

 

17/02 2017

0.1.0

0.1.0.0

Description of project xmlmatcher.

  Sources   Download

The Requires