Trongate PHP Framework Docs
Introduction
Quick Start
Basic Concepts
Understanding Routing
Intercepting Requests
Module Fundamentals
Database Operations
Templates
Helpers
Form Handling
Form Validation
Working With Files
Image Manipulation
Working With Dates & Times
Language Control
Security
Tips And Best Practices

Trongate's Directory Structure

Trongate folders – yes, that's all of them
One .htaccess file and four folders. That's it. Goodbye bloat. Hello speed!

engine/

The beating heart. Routing, helpers, magic. All written in modern PHP.

Don't touch the files in this folder ...or else!

config/

Plain PHP files. No YAML. Nothing weird. Nothing to learn.

config.phpdatabase.phpcustom_routing.php • etc.

modules/

Your app lives here. One folder per feature. No third-party code. 100% Native PHP.

Trongate ships with the following built-in modules:

Module What It Does
dbDatabase connections and CRUD operations
fileFile upload, move, copy, delete
flashdataOne-time session messages
formForm input generation
imageImage resize, crop, rotate
languageMultilingual support
paginationPage navigation
string_serviceString manipulation
templatesAdmin and public page rendering
loginUniversal login for any user table
trongate_administratorsAdmin panel (create, edit, delete users)
trongate_emailSend emails via SMTP
trongate_controlModule management and SQL import
trongate_securityPermission checking
trongate_tokensAPI token generation and validation
urlURL generation and redirects
utilitiesDebugging and utility tasks
validationForm validation and error display
welcomeDefault landing page

Trongate v2 killed the controllers/ subfolder. You're welcome.

public/

The only folder the internet sees. Drop your CSS, JS, images, index.php, and that one favicon you keep forgetting.

Trongate has no third-party dependencies.

We're continually improving the Trongate documentation. If anything is incorrect, unclear, incomplete, or could be better, we'd genuinely appreciate your input.

Share your thoughts in the Documentation Feedback.

Leave Feedback About This Page