How colintree/tinywebdb-php-vue works
TPV is a PHP-backed database management system with a Vue interface and pluggable APIs. Users can access TinyWebDB operations from the public page or manage records, settings, accounts, and backups through the administration UI; clients can also call the APIs directly. Requests enter through the PHP dispatcher, which loads the selected API, and API handlers use the configured database provider. The README documents both TinyWebDB and leaderboard plugins. Backend excerpts are partial, so uncertain internal dispatch and storage-provider wiring are not expanded here.
Main entry points: index.php PHP dispatcher · ApiTinywebdb.class.php TinyWebDB API · ApiLeaderboard.class.php Leaderboard API · Provider.class.php DB provider
Components 16
Vue interface
- Vue app setup
frontend/tinywebdb-php-vue/src/main.js - Page routing
frontend/tinywebdb-php-vue/src/router/index.js - TinyWebDB page
frontend/tinywebdb-php-vue/src/components/Index.vue - Management pages
frontend/tinywebdb-php-vue/src/components/manage
API runtime
- PHP dispatcher
backend/index.php - API response
backend/class/Api.class.php - Manage API
backend/class/api/Manage.class.php
Database layer
- DB provider
backend/class/db/Provider.class.php - DB operations
backend/class/db/Base.class.php - MySQL store
backend/class/db/MySQL.class.php - SAE KV store
backend/class/db/SaeKV.class.php
API plugins
- TinyWebDB API
plugins/tinywebdb/ApiTinywebdb.class.php - Leaderboard API
plugins/leaderboard/ApiLeaderboard.class.php - Plugin definitions
plugins
Other components
- User
- App client
Connections 21
- User → Vue app setup: uses interface
- Vue app setup → Page routing: mounts routes
- Page routing → TinyWebDB page: routes to
- Page routing → Management pages: routes to
- TinyWebDB page → TinyWebDB API: calls API
- Management pages → PHP dispatcher: calls management API
- App client → PHP dispatcher: sends API requests
- PHP dispatcher → Manage API: dispatches action
- PHP dispatcher → TinyWebDB API: loads plugin API
- PHP dispatcher → Leaderboard API: loads plugin API
- Manage API → API response: inherits response handling
- TinyWebDB API → API response: inherits response handling
- Leaderboard API → API response: inherits response handling
- Manage API → DB provider: uses database
- TinyWebDB API → DB provider: uses database
- Leaderboard API → DB provider: uses database
- DB provider → DB operations: provides operations
- DB operations → MySQL store: implemented by
- DB operations → SAE KV store: implemented by
- Plugin definitions → TinyWebDB API: documents plugin
- Plugin definitions → Leaderboard API: documents plugin