How colinchristianson/locker works
Locker is a small PHP/SQLite web application for campus organization members to manage account-scoped secrets. The main workflow is a browser request routed to the front controller, which authenticates the member and reads or saves that member’s vault items; registration and same-day password reset are additional flows. The graph includes the database-backed account, token, and vault layers. Edges reflect shown calls and documented behavior; the campus-mail notice is not evidence of an implemented mail integration.
Main entry points: index.php Route handlers · bootstrap.php App bootstrap and rendering · auth.php Account and session logic · crypto.php Password and token helpers
Components 13
Web request flow
- Request router
public/router.php - Route handlers
public/index.php - App bootstrap and rendering
src/bootstrap.php - Account and vault views
templates
Accounts and sessions
- Account and session logic
src/auth.php - Password and token helpers
src/crypto.php
Password recovery
- Reset forms
templates/forgot.php - New-password form
templates/reset.php
Personal vault
- Vault item access
src/vault.php - Personal shelf view
templates/home.php - Store-secret form
templates/new_item.php - SQLite database
Other components
- Member
Connections 21
- Member → Request router: sends requests
README.md - Request router → Route handlers: routes requests
public/router.php - Route handlers → App bootstrap and rendering: loads
public/index.php - App bootstrap and rendering → Account and session logic: loads
src/bootstrap.php - App bootstrap and rendering → Password and token helpers: loads
src/bootstrap.php - App bootstrap and rendering → Vault item access: loads
src/bootstrap.php - App bootstrap and rendering → SQLite database: initializes and seeds
src/bootstrap.php - Route handlers → Account and session logic: authenticates and manages accounts
public/index.php - Account and session logic → Password and token helpers: hashes passwords
src/auth.php - Account and session logic → SQLite database: reads and writes accounts
src/auth.php - Route handlers → Vault item access: reads and saves items
public/index.php - Vault item access → SQLite database: reads and writes items
src/vault.php - Route handlers → Password and token helpers: issues and checks reset tokens
public/index.php - Password and token helpers → SQLite database: stores and checks tokens
src/crypto.php - App bootstrap and rendering → Account and vault views: renders
src/bootstrap.php - Route handlers → Reset forms: renders recovery form
public/index.php - Route handlers → New-password form: renders reset form
public/index.php - Route handlers → Personal shelf view: renders shelf
public/index.php - Route handlers → Store-secret form: renders item form
public/index.php - SQLite database → Account and session logic: seeds accounts
- SQLite database → Vault item access: seeds sample items