2017 © Pedro Peláez
 

library quipxml

Enhanced SimpleXml-based toolkit

image

wittiws/quipxml

Enhanced SimpleXml-based toolkit

  • Thursday, March 22, 2018
  • by wittiws
  • Repository
  • 3 Watchers
  • 2 Stars
  • 77 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

QuipXml

Build Status, (*1)

QuipXml is chainable PHP objects for manipulating XML modeled after jQuery., (*2)

Although this is being developed with unit tests, this is still alpha. Method names may be subject to change., (*3)

Basic Usage

```` php // The 'load' factory method aligns with SimpleXml constructor arguments. $quip = Quip::load($xml_path, 0, TRUE); $quip = Quip::load($xml_string);, (*4)

// jQuery method names are used where appropriate. $html = $quip->html();, (*5)

// jQuery method names are adjusted when there is a keyword conflict. $quip->xparent();, (*6)

// While jQuery syntax is wonderful, you also get PHP advantages: // 1. xpath // 2. access children like properties // 3. use foreach loops $ul = $quip->xpath("//ul")->eq(0); $ul->li->after(', (*7)

  • New bullet.
  • '); foreach ($quip->xpath("//li")->eq(1) as $li) { }

    // For advanced operations, just like in jQuery, you can access the DOMNode for a given XML node. $el = $ul->dom();, (*8)


    HHVM Limitations for SimpleXML ------------------------------ Effective 2014-03-24 (confirmed on travis-ci), you cannot use the magic self-reference on SimpleXml elements. This code will not work: ```` php $sxml = simplexml_load_file('example.xml'); $sxml->original[0] = $expected;

    Update: This was corrected on HHVM 3 (confirmed on travis-ci on 2014-05-30)., (*9)

    The Versions

    22/03 2018

    dev-master

    9999999-dev https://github.com/wittiws/quipxml

    Enhanced SimpleXml-based toolkit

      Sources   Download

    MIT

    The Requires

    • php >=5.4

     

    xml

    06/02 2018

    v0.2.2

    0.2.2.0 https://github.com/wittiws/quipxml

    Enhanced SimpleXml-based toolkit

      Sources   Download

    MIT

    The Requires

    • php >=5.4

     

    xml

    16/01 2017

    v0.2.1

    0.2.1.0 https://github.com/wittiws/quipxml

    Enhanced SimpleXml-based toolkit

      Sources   Download

    MIT

    The Requires

    • php >=5.3.3

     

    xml

    17/08 2016

    v0.2.0

    0.2.0.0 https://github.com/wittiws/quipxml

    Pre-alpha

      Sources   Download

    MIT

    The Requires

    • php >=5.3.3

     

    xml