Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JAXB for PHP (PAXB?)

Is there a framework like JAXB for PHP?

I need a framework that, as JAXB, create a XML file from an object. This framework has to know how to map the object to XML, respecting its structure when needed (children objects, lists, etc.).

Also, it needs to do the reverse engineering, which means convert a (valid) XML file to the origin object.

In other words, the framework must be able to marshal an object and unmarshal a XML file.

I know how great is JAXB and it's really bad that I can't use Java in this project I'm currently working.

like image 385
William Brombal Chinelato Avatar asked Nov 15 '22 05:11

William Brombal Chinelato


1 Answers

I think you're looking for an PHP object XML serializer/deserializer. This might help: PHP Object as XML Document

like image 156
alexantd Avatar answered Nov 17 '22 05:11

alexantd