问题描述
是否有与JAXB等效的PHP?它被证明对Java开发非常有用,作为一个新的PHP,我想使用JAXB在PHP世界中提供的相同概念。
Is there a PHP equivalent to JAXB? It's proved very useful for Java development, and as a new PHP'er I'd like to use the same concepts JAXB provides in a PHP world.
推荐答案
我之前也试图找到同样的东西,但不能。所以我决定为PHP 5.3编写自己的库,它反映了JAXB的注释,将对象绑定到XML。
I was also trying to find the same thing before, but couldn't. So I decided to write my own library for PHP 5.3 which mirrors JAXB's annotations to bind objects to XML.
在这里查看: https://github.com/lampjunkie/xml-hitch
希望其他人会发现这很有用。
Hopefully others will find this useful.