How elivanjr/catalogo-receitas works
This is a small PHP recipe-catalog application. Its visible workflow is: users authenticate, then submit recipe data to create, update, or delete recipes; handlers enforce session authentication where required, validate recipe fields on create/update, and issue SQL through a shared PDO connection. The tree also includes a schema file, but its contents were not sampled. The README gives no further capability details, and no page or read-handler files appear in the supplied tree, so the graph focuses on evidenced action handlers and shared runtime code.
Main entry points: salva.php Create recipe · atualiza.php Update recipe · database.php PDO connection · auth.php Session auth
Components 10
Request handlers
- Authenticate
actions/autentica.php - Sign out
actions/logout.php - Create recipe
actions/salva.php - Update recipe
actions/atualiza.php - Delete recipe
actions/remove.php
Recipe and auth logic
- Session auth
includes/auth.php - Recipe validation
includes/receitas.php
Persistence
- PDO connection
config/database.php - MySQL catalog
Other components
- User
Connections 20
- User → Authenticate: submits credentials
- User → Sign out: requests sign-out
- User → Create recipe: submits recipe
- User → Update recipe: submits changes
- User → Delete recipe: submits deletion
- Authenticate → PDO connection: loads connection
actions/autentica.php - Authenticate → Session auth: starts session
actions/autentica.php - Sign out → Session auth: clears session
actions/logout.php - Create recipe → Session auth: requires auth
actions/salva.php - Create recipe → PDO connection: loads connection
actions/salva.php - Create recipe → Recipe validation: validates data
actions/salva.php - Create recipe → MySQL catalog: inserts recipe
actions/salva.php - Update recipe → Session auth: requires auth
actions/atualiza.php - Update recipe → PDO connection: loads connection
actions/atualiza.php - Update recipe → Recipe validation: validates data
actions/atualiza.php - Update recipe → MySQL catalog: updates recipe
actions/atualiza.php - Delete recipe → Session auth: requires auth
actions/remove.php - Delete recipe → PDO connection: loads connection
actions/remove.php - Delete recipe → MySQL catalog: deletes recipe
actions/remove.php - PDO connection → MySQL catalog: opens PDO
config/database.php