PhpTide — a concise, elegant PHP framework
PhpTide — a simple and beautiful PHP framework; PHP will feel like the tide.
PhpTide is a PHP framework focused on clarity, convention, and execution efficiency. This chapter helps you install the framework, understand the directory layout, and see baseline performance numbers.
Runtime overview (what phptide actually does)
public/index.php usually defines APP_PATH and friends, then requires phptide/start.php. From there the pipeline is roughly:
App::boot()(tide\Appinphptide/app.php) — loadsphptide/function.phpplusapp/function.php, then mergesphptide/config.phpwithapp/config.php.- Autoload — registers the SPL rules in
phptide/load.php(tide\…classes resolve underphptide/, app classes underapp/). Route::run()(tide\Route) — executesapp/route.php, matches the HTTP verb +PATH_INFOagainst your route table.- Dispatch & teardown — runs the controller/view stack, flushes logs, optionally renders the debug trace (
debug_traceand related config).
CLI is supported: the router builds PATH_INFO and query data from argv. Routes are grouped per verb (GET, POST, PUT, PATCH, DELETE, ANY).
What you will learn
The Getting started section covers:
- How to obtain the framework and run it locally.
- Core directory conventions and entry structure.
- Rough performance under a simple load test.
Suggested reading order
- Installation — confirm the app responds in your environment.
- Directory layout — understand modules, controllers, views, and the front controller.
- Benchmarks — optional context on how the framework is positioned.
When PhpTide fits
If you want a lightweight, convention-driven PHP web project that is easy to maintain, PhpTide is a straightforward starting point.