Ana Sayfa / Kod ve Scriptler / ThreadBase - Community Forum PHP Script

ThreadBase - Community Forum PHP Script

Kategoriler, konular, bahsetmeler, moderasyon, tepkiler ve arama ile bir topluluk forumu işletin.

  • Yayın tarihi10 Kasım 2026
  • Nerede çalışırPHP 8.2, PHP 8.3, PHP 8.4
  • VeritabanıMySQL 8.0, SQLite 3.x
  • Paket içeriği.php, .css, .json, .svg, .sql, .md, .yml/.yaml, composer.json, Dockerfile, JavaScript .js
  • Son güncelleme10 Kasım 2026
  • Canlı demoVar
ThreadBase - Community Forum PHP Script

Overview

Fast community forum with categories, threads, mentions, moderation, reactions and full-text search. ThreadBase is a complete, self-hosted community Forum PHP Script in plain PHP 8.2 — no framework, no Composer runtime dependencies and no build step. Upload the files, run the browser installer, choose SQLite or MySQL, and you are live in minutes.

> A forum that renders in one request and posts without JavaScript. > Categories, threads, quotes, subscriptions, reports and moderation. > Self-hosted PHP 8.2+.

What's inside

  • Categories — Ordered list with thread and post counts
  • Threads — Title, unique slug, pin/lock flags, maintained post_count
  • Posts — Markdown, optional quote of an earlier post, soft delete with a tombstone
  • Replies — Posting works with JS disabled; a locked thread refuses new posts
  • Subscriptions — Author auto-subscribes; anyone signed in can subscribe
  • Reports — Anyone can report a post; moderators resolve each report once
  • Anti-spam — Accounts younger than a day may post once a minute

Why ThreadBase

  • Server-rendered threads with progressive enhancement: posting, quoting and pagination work with JS disabled.
  • Trust levels, moderation queue, spam heuristics (link ratio, new-account velocity) and per-IP rate limits.
  • Markdown with syntax highlighting, mentions, subscriptions, RSS and a 30-day digest.

Built to last

  • No framework and no runtime Composer packages — the ZIP is the whole application.
  • SQLite for a zero-config install and MySQL/MariaDB for production, from one migration pair.
  • 14 automated tests covering the money, state-machine, uniqueness and permission rules.
  • English and Chinese interface, dark mode, WCAG AA focus states, usable down to 360 px.
  • CSRF on every POST, prepared statements only, output escaped at the template.

Requirements

  • PHP 8.2 or newer with PDO (pdo_sqlite or pdo_mysql), mbstring, json, openssl and fileinfo.
  • Apache with mod_rewrite or Nginx; document root pointed at public/.
  • SQLite 3 (bundled with PHP) or MySQL 8 / MariaDB 10.4+.
  • Write access to the application root and storage/.

Quick start: upload the ZIP, point the document root at public/, open /install/ and follow the four steps. Docker users can run docker compose up -d --build instead and open the same installer.

Features

• Categories — Ordered list with thread and post counts • Threads — Title, unique slug, pin/lock flags, maintained post_count • Posts — Markdown, optional quote of an earlier post, soft delete with a tombstone • Replies — Posting works with JS disabled; a locked thread refuses new posts • Subscriptions — Author auto-subscribes; anyone signed in can subscribe • Reports — Anyone can report a post; moderators resolve each report once • Anti-spam — Accounts younger than a day may post once a minute • Self-hosted PHP 8.2 application with no framework and no runtime Composer dependencies • SQLite and MySQL/MariaDB support from one migration pair, with a four-step browser installer • 9 database tables, 20 routes and 14 automated tests • English and Chinese interface, dark mode, WCAG AA focus states, mobile down to 360 px • CSRF protection, prepared statements and escaped output throughout

Requirements

• PHP 8.2 or newer (tested on 8.2, 8.3 and 8.4) • PDO with pdo_sqlite or pdo_mysql • mbstring, json, openssl and fileinfo extensions • Apache with mod_rewrite, or Nginx with a front-controller rule • SQLite 3, or MySQL 8.0 / MariaDB 10.4 and newer • Write access to the application root and storage/ directory • A modern browser; no Node.js, Composer or build tools required