Skip to content

Project root ​

bash
app       # Application modules (your code)
public/index.php # Front controller
phptide     # PhpTide framework core
README.md    # Readme

Application directory ​

Business code usually lives under app, including shared config, shared helpers, module controllers, and view templates.

bash
app/
├── config.php        # Shared config
├── function.php      # Shared helpers
├── home
│   ├── controller   # home module controllers
│   │   └── index.php        # index controller
│   └── view         # Views for the module
│       └── index          # Views for the index controller
│           └── viewtest.html     # viewtest action template
└── route.php         # Routes

Framework core ​

The phptide directory is the framework: start.php defines path constants and calls \tide\App::start(); other files are mostly classes under the tide\ namespace plus global helpers in function.php. The layout today looks like this (may change slightly by release):

bash
phptide/
├── VERSION           # Release version (read by the site packaging script)
├── start.php         # Bootstrap: constants, optional Composer autoload, app.php, start
├── app.php           # \tide\App: boot, autoload, routing, dispatch, teardown
├── config.php        # Framework defaults (DB, cache, session, logging, …)
├── function.php      # Globals: input, params, config, view, …
├── load.php          # SPL autoloader for tide\*, lib\*, and app classes
├── route.php         # \tide\Route: verb-based routes, PATH_INFO parsing
├── controller.php
├── model.php
├── view.php
├── db.php
├── db/mysql.php | pgsql.php | sqlite.php
├── cache.php
├── cache/file.php | redis.php | memcache.php | storage.php
├── session/db.php | redis.php
├── log.php
├── util/build.php    # Module scaffolding helpers
├── util/page.php | upload.php
└── tpl/exception.php | jump.php | trace.php

Your app wires URLs in app/route.php with Route::get(), Route::post(), and friends. Optional Composer autoload can live at phptide/../vendor-composer/autoload.php (see start.php); legacy extensions use the top-level vendor/ folder with load::vendor().

Reading tips ​

When you are new to a project, start with public/index.php, app/, and app/route.php. Those files explain the entry point, module layout, and how URLs map to code.

PhpTide documentation