How fabiojr933/appxml works
AppXml is a small PHP web application for replacing the recipient CNPJ in an uploaded NFe XML and returning the modified file for download. Its documented workflow is upload, update the destination CNPJ, generate the output XML, and download it. The controller excerpt shows the file operations; the README describes the user-facing workflow. Routing details beyond the front controller are not established by the available excerpts.
Main entry points: HomeController.php Home controller · template.php Page template · Core.php Request router · Model.php Database model
Components 21
Web interface
- Home page
app/views/home.php - Page template
app/views/template.php
XML conversion
- Home controller
app/controllers/HomeController.php - Uploaded XML
xml_original - CNPJ replacement
app/controllers/HomeController.php - Generated XML
xml_final
PHP framework
- Front controller
index.php - Request router
app/core/Core.php - View controller
app/core/Controller.php - Application config
config/config.php - Database connection
app/core/Conexao.php - Database model
app/core/Model.php - Data access
app/models/dao/Dao.php - Data services
app/models/service/Service.php - Session messages
app/core/Flash.php - Validation
app/core/Validacao.php - Validation rules
app/core/ValidacaoItem.php - Exception handling
app/core/Excecao.php - Upload utilities
app/util/UtilService.php - Shared helpers
app/helper
Other components
- User
Connections 15
- User → Home controller: submits XML
README.md - Front controller → Request router: runs
index.php - Request router → Home controller: dispatches
- Home controller → Page template: loads page
app/controllers/HomeController.php - Page template → Home page: renders
app/views/template.php - Home controller → Uploaded XML: stores upload
app/controllers/HomeController.php - Home controller → CNPJ replacement: updates CNPJ
app/controllers/HomeController.php - CNPJ replacement → Uploaded XML: reads XML
app/controllers/HomeController.php - CNPJ replacement → Generated XML: writes XML
app/controllers/HomeController.php - Home controller → User: downloads file
app/controllers/HomeController.php - View controller → Session messages: reads messages
app/core/Controller.php - Data access → Database model: delegates queries
app/models/dao/Dao.php - Database model → Database connection: gets connection
app/core/Model.php - Data services → Data access: delegates data access
app/models/service/Service.php - Validation → Validation rules: uses rules
app/core/Validacao.php