We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

REST API using phalcon

Hello in a REST API how can get plist or xml instead of json?



1.0k

I checked the example and it works! but i'm trying to get an output with plist and xml i couldn't get this output yet :(



7.9k

you just have convert array that returned from model to xml instead of json.

there are plenty array to xml library out there you can search on https://packagist.org

here is example array to xml library https://github.com/openlss/lib-array2xml