How mgoldie05/locker works
Locker is a small PHP/SQLite shared-secret shelf. A member reaches the front controller, signs in or registers, then views or stores account-scoped vault entries; password recovery uses a same-day reset token. The advisor account and its seeded hold are documented and created in the seed routine. The graph distinguishes request routing, application logic, persistence, and rendered screens. No mail service is shown: the README and controller describe a queued reset link, but the sampled code only stores a token.
Main entry points: index.php Front controller · db.php SQLite schema and seed · auth.php Account and sessions · bootstrap.php Bootstrap and rendering
Components 15
Request handling
- PHP router
public/router.php - Front controller
public/index.php
Application logic
- Bootstrap and rendering
src/bootstrap.php - Account and sessions
src/auth.php - Password and tokens
src/crypto.php - Vault operations
src/vault.php
Persistence
- SQLite schema and seed
src/db.php
Rendered screens
- Shared layout
templates/layout_start.php - Vault shelf
templates/home.php - Account forms
templates/register.php - Reset forms
templates/reset.php - New item form
templates/new_item.php - Forgot form
templates/forgot.php - Sign-in form
templates/login.php
Other components
- Member
Connections 20
- Member → PHP router: sends requests
README.md - PHP router → Front controller: routes requests
public/router.php - Front controller → Bootstrap and rendering: loads
public/index.php - Bootstrap and rendering → SQLite schema and seed: initializes and seeds
src/bootstrap.php - Front controller → Account and sessions: uses account functions
public/index.php - Front controller → Password and tokens: uses reset functions
public/index.php - Front controller → Vault operations: reads and adds items
public/index.php - Account and sessions → SQLite schema and seed: queries users
src/auth.php - Account and sessions → Password and tokens: hashes passwords
src/auth.php - Password and tokens → SQLite schema and seed: stores reset tokens
src/crypto.php - Vault operations → SQLite schema and seed: reads and writes entries
src/vault.php - Front controller → Vault shelf: renders shelf
public/index.php - Front controller → Account forms: renders registration
public/index.php - Front controller → Sign-in form: renders sign-in
public/index.php - Front controller → Forgot form: renders recovery
public/index.php - Front controller → Reset forms: renders reset
public/index.php - Front controller → New item form: renders item form
public/index.php - Bootstrap and rendering → Shared layout: includes layout
src/bootstrap.php - SQLite schema and seed → Account and sessions: seeds accounts
src/db.php - SQLite schema and seed → Vault operations: seeds vault items
src/db.php