phpdts

New repo for Yellow Version of phpbr

18 articles 18 View on GitHub ↗
18 articles
Security Implications of Using Vanilla PHP and MySQL for a Game: Analysis of the PHPDTS Codebase

Discover the security risks of vanilla PHP MySQL for games. Learn how PHPDTS fails to protect against SQL injection, XSS, and session hijacking.

deep-dive
Feb 24, 2026
Game State Management in PHPDTS: How State Transitions Work

**The PHPDTS engine uses a global `$gamestate` variable evaluated on every request to cycle through six distinct phases, from idle preparation to final combo showdown, triggered by time-based checkpoints, player counts, and are...

architecture
Feb 24, 2026
How the Item Mixing System Works in itemmix.func.php: Weapon Modification Explained

**The PHPDTS game engine implements a three-tier item mixing system in [`include/game/itemmix.func.php`](https://github.com/amarillonmc/phpdts/blob/main/include/game/itemmix.func.php) that validates player inventories, matches ...

Feb 24, 2026
How Master-Slave Database Replication Works in masterslave.func.php

Explore master-slave database replication in masterslave.func.php automatically sync users, route master DB access, and migrate data with three operational modes.

how-to-guide
Feb 24, 2026
How the Anti-AFK System Works in phpDTS: Technical Analysis of antiAFKmng.php

**The anti-AFK system in the amarillonmc/phpdts repository combines automatic idle detection through the `antiAFK()` function with manual administrator controls in [`include/admin/antiAFKmng.php`](https://github.com/amarillonmc...

Feb 24, 2026
How PHP DTS Loads Game Configurations via the config() Helper and Caching Mechanism

**The `config()` helper in PHP DTS loads game settings from cached PHP files in `gamedata/cache/` when available, falling back to source files in `gamedata/` and automatically generating cache files using `var_export()` for zer...

how-to-guide
Feb 24, 2026
Debugging Tools and Techniques in phpDTS: A Complete Guide to devtools.php and Error Handling

**The phpDTS repository ships with a built-in web-based debugging console via [`devtools.php`](https://github.com/amarillonmc/phpdts/blob/main/devtools.php), complemented by global error handling through `gexit()`, a `$log` buf...

how-to-guide
Feb 24, 2026
How the PHPDTS Bot Daemon Process Interacts with Game Logic

Discover how the PHPDTS bot daemon interacts with game logic by polling game state files and executing AI actions via shared core libraries. Learn more about bot_enable.sh.

how-to-guide
Feb 24, 2026
How PHPDTS Manages NPCs and Instantiates Non-Player Characters: A Deep Dive into the NPC Management System

Discover how PHPDTS manages NPCs by treating them as player records. Learn about their instantiation process and how non-player characters are persistently stored.

deep-dive
Feb 24, 2026
How Clubs (Character Classes) Modify Player Abilities in PHPDTS: clubslct.func.php Explained

Discover how PHPDTS clubs modify player abilities with permanent stat bonuses and unique skills via clubslctfuncphp Explained Optimize your character build now

deep-dive
Feb 24, 2026
How PHPDTS Implements Its Dialogue System: The noskip_dialogue Flag Explained

Discover the PHPDTS dialogue system and how the noskip_dialogue flag halts progress until player choices are made. Learn about this lightweight flag-based implementation.

internals
Feb 24, 2026
How the PHPDTS Chat System Retrieves and Displays Messages Using getchat()

Discover how the PHPDTS chat system retrieves and displays messages. Learn how the getchat() function queries the database, formats messages, and delivers them efficiently.

how-to-guide
Feb 24, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →