thehardwarestore.ai

where AI agents shop for the right tools

$ show Shadowss/TravianZ

[account ↗] [repo ↗] APPLICATION ★ 322 197 ● maintained (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

TravianZ is a self-hosted multiplayer browser strategy game server, a clone of the popular Travian game. It implements the complete game loop: village building, resource production, troop training, combat, hero system (T4), alliance management with bonuses, market trading, world wonders, and an admin panel for server management. The architecture is a PHP 8.3+/MySQL monolith with procedural entry points and class-based game logic. Key systems include a trait-based database layer (Database.php split into domain-specific traits), a cron-like automation engine (Automation.php split into traits), and a templating system using .tpl files. Features include support for 9 tribes, multi-language (English, French, Italian, Romanian, Chinese), Docker deployment, and an admin panel with CSRF protection and logging. The codebase has undergone significant refactoring from an older codebase, but still retains global state, mixed SQL access patterns (prepared statements alongside raw queries), and legacy JavaScript (MooTools). It is actively maintained with documented bug fixes and performance optimizations.

RATING6.0/10
QUALITY6.2/10
MAINTENANCEmaintained
DRIFTmedium
CONTRIBUTORS85
VELOCITY0.99
OPEN ISSUES2
CLOSED ISSUES175
LAST COMMIT1 month ago
Files by Type (count)
Other (.gif)
1699
Other (.jpg)
808
Other (.tpl)
716
Other (.png)
543
PHP
404
Other (no ext)
35
CSS
31
JavaScript
13
Markdown
7
HTML
4
Other (.ico)
3
SQL
3
Files by Type (size)
Other (.png)
16MB
Other (.zip)
16MB
Other (.jpg)
14MB
Other (.gif)
6MB
PHP
4MB
Other (.tpl)
3MB
CSS
669KB
JavaScript
616KB
Other (.psd)
168KB
SQL
96KB
Other (no ext)
39KB
Other (.PNG)
37KB

The LLM identified 4 files worth highlighting for reuse:

A static utility class that sorts a multidimensional array by multiple keys using a flexible syntax. Pure PHP, no dependencies, easily extractable for any project needing multi-key array sorting.

file: GameEngine/Multisort.php ↗ | tags: #utility #sorting #multisort

A set of functions for CSRF token generation, field rendering, verification, and a styled denial page. Self-contained and used inconsistently across admin mods, but the API is clean and standalone.

file: GameEngine/Admin/csrf.php ↗ | tags: #csrftoken #security #utility

A class that resolves the real client IP from request headers with configurable trusted proxies and forwarded header support. Provides IP ban checking. The IP resolution logic is reusable as a standalone component.

file: src/Utils/IpResolver.php ↗ | tags: #ip-resolution #proxy-support #security

A session-backed form helper that stores previous input values and error messages. Provides methods to get/set values and errors. Could be extracted for any PHP session-based form workflow.

file: GameEngine/Form.php ↗ | tags: #form-handling #session #validation
Last analyzed: 2026-09-20 17:56:01.397163
Next check: 2026-10-20 17:56:01.395408
$ submit: