# PHPODKRead: a little program writen in PHP to treat the csv files

**URL:** <https://forum.getodk.org/t/phpodkread-a-little-program-writen-in-php-to-treat-the-csv-files/38839>\
**Category:** Showcase\
**Created:** [September 1, 2022, 9:32am UTC](https://forum.getodk.org/t/phpodkread-a-little-program-writen-in-php-to-treat-the-csv-files/38839 "2022-09-01T09:32:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![equinton](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/equinton/32/18661_2.png) [@equinton](https://forum.getodk.org/u/equinton)\
**Post date:** [September 15, 2022, 7:06am UTC](https://forum.getodk.org/t/phpodkread-a-little-program-writen-in-php-to-treat-the-csv-files/38839/3 "2022-09-15T07:06:07Z")

</div>

Personally, I don't know the format generated directly by ODK Collect: I have access to an ODK Central server, and I retrieve the generated zip files. What the script does is to read the zip files that contain the data, restructure them, and the result can be used to populate a database by simply creating an appropriate class.

The script can be integrated into a PHP application quite simply, the "engine" being encapsulated in separate classes and files (lib folder).

Éric.

---

_[View the full topic](https://forum.getodk.org/t/phpodkread-a-little-program-writen-in-php-to-treat-the-csv-files/38839)._
