How joeltondf/cnm works
This is a PHP municipal budget-monitoring dashboard. Users choose a municipality and reporting parameters, then the dashboard obtains SICONFI data and presents financial summaries, comparisons, tables, and charts. A separate page synchronizes the municipality list from IBGE. The excerpts show the dashboard-to-service calls, database connection setup, and IBGE synchronization; they do not expose the full query, cache, or persistence flow, so those details are not expanded here.
Main entry points: Database.php PDO connection · SiconfiService.php SICONFI service · sync_municipios.php Municipality sync · index.php Dashboard UI
Components 9
Dashboard
- Dashboard UI
index.php
Financial data
- SICONFI service
lib/SiconfiService.php - SICONFI API
Local storage
- PDO connection
lib/Database.php - Runtime config
config.php - MySQL database
Municipality sync
- Municipality sync
sync_municipios.php - IBGE API
Other components
- Dashboard user
Connections 8
- Dashboard user → Dashboard UI: uses
- Dashboard UI → SICONFI service: requests data
index.php - SICONFI service → SICONFI API: queries
lib/SiconfiService.php - SICONFI service → PDO connection: uses
lib/SiconfiService.php - PDO connection → Runtime config: loads settings
lib/Database.php - PDO connection → MySQL database: opens connection
lib/Database.php - Municipality sync → IBGE API: fetches municipalities
sync_municipios.php - Municipality sync → PDO connection: gets connection
sync_municipios.php