The TagMogrifier library for PHP
Do you work with PHP and XML often? If you do, you’ve probably noticed it’s very tedious to manipulate XML from PHP. Be it regular expressions, tree walking of DOM nodes, or SAX, all of these alternatives are hard work.
The purpose of this library is to let you perform fast and easy-to-program transformations on XML documents. Instead of having to write your own parser, or directly using the PHP DOM parser, and having to write your own tree walker and such, you only need to instantiate a class, add a few match expressions, and assign a function to process every XML element that matches, DOM-style.
What’s required to use this library?
- PHP 5.0.0 or newer
- The PHP XML extension, installed and active (usually packaged in a package named
php-xml)
Resources
- See the library in action, with a few examples and instructions
- See (and subscribe to) the live change log for this project
- Download the TagMogrifier library
Getting help
Help for this software is available in several forms. Here are the rules:
- E-mails or posted comments with bug reports, patches, suggestions or contributions of any kind will be received by me in good faith, and I will, in time, incorporate all submitted improvements, in any form, to the software.
- This software is delivered to you without warranty of any kind, as recognized by the GNU General Public License.
- Special requests, such as customization, third-party licenses, development of large features, or requests which require software engineering to be applied, will be performed by me, for a fee. If you’re attracted to my engineering skills, wait until you see my rates. After all, living on a Third World country has its advantages. Let me know if you’re interested.