Skip to content

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:

  1. App::boot() (tide\App in phptide/app.php) — loads phptide/function.php plus app/function.php, then merges phptide/config.php with app/config.php.
  2. Autoload — registers the SPL rules in phptide/load.php (tide\… classes resolve under phptide/, app classes under app/).
  3. Route::run() (tide\Route) — executes app/route.php, matches the HTTP verb + PATH_INFO against your route table.
  4. Dispatch & teardown — runs the controller/view stack, flushes logs, optionally renders the debug trace (debug_trace and 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 ​

  1. Installation — confirm the app responds in your environment.
  2. Directory layout — understand modules, controllers, views, and the front controller.
  3. 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.

PhpTide documentation