generate PHP classes from XSD?

后端 未结 8 2141
春和景丽
春和景丽 2020-12-05 07:41

Is there in the world analogues of JavaBeans or JAXB for PHP? Is it possible to generate PHP classes from XML schema?

It\'s common practice to publish API\'s as XSD

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 07:59

    There is another recent tool called PiBX a JiBX inspired tool.

    From the site:

    PiBX is an XML-Data-Binding framework for PHP.

    With PiBX you can generate PHP classes based off an available XML-Schema. These classes can be used to marshal the informations to XML without hassling with schema checks, constraints or restrictions.

提交回复
热议问题