How bacharo2307/todo-php works
This PHP todo-list app lets a user manage tasks in a browser, with changes persisted in MySQL and XML import/export. The main workflow is browser interaction through script.js to PHP endpoints, which read or update the task store; listing refreshes return rendered HTML. Import reads taches.xml, while export returns generated XML. The README documents AJAX refresh and CRUD/import/export capabilities; HTML and styling are present in the tree, but their source was not sampled.
Main entry points: script.js AJAX client · connect.php PDO connection · importer.php Import tasks · taches.php List and clear
Components 11
Browser interaction
- AJAX client
script.js
Task operations
- List and clear
taches.php - Add task
ajouter.php - Edit task
modifier.php - Delete task
supprimer.php
Persistence
- PDO connection
connect.php - MySQL task store
XML exchange
- Import tasks
importer.php - Export tasks
exporter.php - Import XML
taches.xml
Other components
- User
Connections 28
- User → AJAX client: interacts
- AJAX client → List and clear: fetches list
- AJAX client → Add task: submits task
- AJAX client → Edit task: submits edit
- AJAX client → Delete task: requests delete
- AJAX client → List and clear: requests clear
- AJAX client → Import tasks: requests import
- AJAX client → Export tasks: requests export
- List and clear → AJAX client: returns HTML
- Add task → AJAX client: returns response
- Edit task → AJAX client: returns response
- Delete task → AJAX client: returns response
- Import tasks → AJAX client: returns response
- List and clear → PDO connection: requires
- Add task → PDO connection: requires
- Edit task → PDO connection: requires
- Delete task → PDO connection: requires
- Import tasks → PDO connection: requires
- Export tasks → PDO connection: requires
- PDO connection → MySQL task store: connects
- List and clear → MySQL task store: reads or clears
- Add task → MySQL task store: inserts
- Edit task → MySQL task store: updates
- Delete task → MySQL task store: deletes
- Import tasks → Import XML: reads
- Import tasks → MySQL task store: inserts
- Export tasks → MySQL task store: reads
- Export tasks → User: returns XML