Documentation / Quickstart & Architecture

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

  1. index.php entry point: Registers the lightweight autoloader and boots BowBootstrap.
  2. Language & Route Matching: Inspects URL prefixes (/en/) and maps slugs according to bow-routes.json.
  3. 301 Canonical Redirection: Automatically redirects alternate-language slugs to canonical routes.
  4. Config Resolution: BowTranslation substitutes all @trans: references into a unified memory map.
  5. BowRenderer DOM Assembly: Executes data-rbow-* directives, file shadowing, and delivers clean HTML.

Privacy & Cookies

This website uses essential technical cookies and Google Calendar integration to ensure a seamless experience.

Preferences