Quickstart & Engine Architecture
Bit of Web (BOW) is a sub-millisecond, flat-file PHP web engine. Zero database queries for website rendering, zero external database servers to manage, and zero build steps.
1 Running Local Dev Server
The platform runs on any standard PHP 8.1+ installation. Launch the zero-config built-in web server with a single command from the project root:
$ php -S localhost:8500 index.php
2 Directory Hierarchy
bow/ ├── config/ # Central JSON configs & calendar service account credentials │ ├── bow-general.json # Supported languages, SMTP settings, API & MCP toggles │ ├── bow-renderer.json# Theme (DaisyUI), semantic brand roles, SEO meta │ ├── bow-appointment.json # Google Calendar provider calendars and services │ ├── bow-routes.json # Localized route mappings & 301 canonical redirects │ ├── translation-hu.json # Hungarian dictionary │ └── translation-en.json # English dictionary ├── pages/ # Route endpoints and content page templates │ ├── index/ # Home landing page │ ├── docs/ # Documentation center │ └── idopontfoglalas/ # Real-time appointment booking page ├── layouts/ # Master HTML shells (default.html, docs.html) ├── components/ # Reusable widgets (nav.html, appointment-picker.php) ├── library/ # Production CSS (daisyui, tailwind) & vendor JS (alpine.min.js) ├── assets/ # Logos, images, brand stylesheets └── src/ # Core backend engine classes (BowBootstrap, BowRenderer, BowData...)
3 Request Lifecycle
- index.php entry point: Registers the lightweight autoloader and boots
BowBootstrap. - Language & Route Matching: Inspects URL prefixes (
/en/) and maps slugs according tobow-routes.json. - 301 Canonical Redirection: Automatically redirects alternate-language slugs to canonical routes.
- Config Resolution:
BowTranslationsubstitutes all@trans:references into a unified memory map. - BowRenderer DOM Assembly: Executes
data-rbow-*directives, file shadowing, and delivers clean HTML.