2017 © Pedro Peláez
 

library welldom

XML toolbox for PHP

image

welldom/welldom

XML toolbox for PHP

  • Tuesday, September 23, 2014
  • by GromNaN
  • Repository
  • 7 Watchers
  • 10 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Welldom, the XML toolbox for PHP Build Status

Welldom try to ease the use of DOM to manipulate XML documents with the following features :, (*1)

  • Error management
  • Unique encoding for XML input/output
  • Simple methods to query and manipulate the DOM with Xpath
  • Batch on node list
  • Node rename & remove methods

Requirements

  • PHP 5.3+
  • PHPUnit 5.6+

Installation

The library follow the PSR-0 naming convention. To load the library, use any compliant class loader or simply require the src/autoload.php file., (*2)

``` php require DIR . '/path/to/expdom/src/autoload.php';, (*3)


Usage ----- Load an XML document: ``` php <?php use Welldom\Document; $doc = new Document('UTF-8'); if (false === $doc->load('data.xml')) { $errors = $doc->getLastErrors(); throw new Exception("XML Loading error\n" . implode("\n", $errors)); } // ... enjoy your DOM document

Find a node values using XPath:, (*4)

``` php $values = array( 'title' => $doc->getNodeValue('//book/title'), 'lang' => $doc->getNodeValue('//book/title/@lang', 'en'), );, (*5)


Execute action on each node matching a given Xpath: ``` php $doc->query('//foo/bar[@lang=de]') ->remove(); $doc->query('//foo/bar[@lang=english]/@lang') ->setValue('en');

Run tests

Run PHPUnit test suite:, (*6)

phpunit

License

For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*7)

Contributors:, (*8)

The Versions

23/09 2014

dev-master

9999999-dev https://github.com/LExpress/Welldom

XML toolbox for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle
by Jérôme Macias

xml dom xpath xslt

23/09 2014

v1.0.2

1.0.2.0 https://github.com/LExpress/Welldom

XML toolbox for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle
by Jérôme Macias

xml dom xpath xslt

11/08 2014

v1.0.1

1.0.1.0 https://github.com/LExpress/Welldom

XML toolbox for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle
by Jérôme Macias

xml dom xpath xslt

15/03 2013

v1.0.0

1.0.0.0 https://github.com/LExpress/Welldom

XML toolbox for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle
by Jérôme Macias

xml dom xpath xslt