https://github.com/bpolaszek/bentools-simplexmlextended
SimpleXml Extended for PHP
https://github.com/bpolaszek/bentools-simplexmlextended
Last synced: 11 months ago
JSON representation
SimpleXml Extended for PHP
- Host: GitHub
- URL: https://github.com/bpolaszek/bentools-simplexmlextended
- Owner: bpolaszek
- License: mit
- Created: 2015-03-05T15:59:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T08:55:14.000Z (over 10 years ago)
- Last Synced: 2025-02-10T22:30:55.795Z (11 months ago)
- Language: PHP
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SimpleXMLExtended
-----------
Just an enhancement of the PHP5 native SimpleXmlElement.
Adds the ability to add / replace / remove childs, with or without CDATA, and some method chainings such as dXpath() (for returning the 1st Xpath element found), etc.
Fixes the __toString() default method that does not properly convert to your encoding if you're not using UTF-8 (requires PHP 5.4+).
Installation
------------
Add the following line into your composer.json :
{
"require": {
"bentools/simplexmlextended": "dev-master"
}
}
Enjoy.