![]() |
ones&zeros phpXML.class.php - Version 1.1 (April 3, 2007)
A lightweight PHP-based XML parser and generator |
In a hurry? Here ya go:
Click here for the source code...
Documentation for the phpXML Lite class is here...
QUICK NOTE: This class is FREE!!! I only ask for donations if this class really saves you some development time. I'd also like to find out what you're using it for, because it's cool to know how it saves you time.
Lately, I've been programming a lot of AJAX/Javascript, Flash, and PHP integration. I like to use XML
as the method for moving data back and forth between the client and the server side. The Flash loadVars
class is cool and super-quick to implement, but when it comes to moving lots of stuff, I like the
portability and extensibility of XML. Interoperability with future applications will be assured using
XML, IMHO.
So, in searching for a fast, easy-to-use, and reliable solution for the PHP side of the equation, I could not for the life of me find a decent, easy-to-implement PHP XML parser/generator. PEAR does it with the unserialize class and a couple others, but it's still way too much overhead for what I wanted. I just wanted something small and simple to plug into my PHP scripts. The other thing I found was that those other methods were not designed like the Flash XML class. If you like the way the XML class works in Flash (or, if you've just become used to using it, regardless of whether or not you like it), you'll like my lightwieght little PHP XML class. I modeled it after Flash's.
Please feel free to look over the documentation for the class to see if you think it will save you some time in development and simplify the task of working XML between Flash and PHP. If you think it will save you some time, please think about donating a measily $10 to my cause. It's ready to go and it's just a single PHP file that you include in your scripts. That's it. The documentation is pretty darn thorough and the examples are clear. You should be able to get it up and running in a minute. If it saves you a major ton of time, please feel free to donate a little more so that I can afford to take the time to improve it and maintain it.
Here is a list of links to the documentation, sample code, and live pages that are using the class:
To donate to the cause of the phpXML Lite class, please click here. Grab the class from the link at the top of the page or click here to download the ZIP file. Just drop the PHP file in your favorite includes directory or script home directory and start using it! It really is that easy.