The simple and efficient PHP framework

Easier than the big frameworks
More framed than the micro-frameworks

Temma in 3 minutes
Skriv
Rolis
Ooreka
CommentFaitOn
Quart de lune
Lagom Architect

Presentation

Temma is a simple and efficient MVC framework.

  • modern, PHP 7.3+ compatible
  • relational and noSQL databases
  • Smarty templates, JSON/CSV/RSS... exports

When someone visits this URL...

www.site.com/article/show/123/title

...Temma executes this code...

Article::show(123, 'title');

...and uses this template to generate the page

article/show.tpl
1/2

Development time halved compared to other equivalent solutions.

+400

Sites using Temma professionally

13

Years of experience in the service of reasoned development

1

Used by the n° 1 site in France on Home/DIY topics, managing +30M page views/month

Components

Migration

The main differences between Temma 1.x and version 2

Installation

Temma installation is very easy, by cloning the Git repository

Configuration

Temma configuration is based on a JSON file and optional environment variables

Routing

Temma's routing system is intentionally very simple by default, but can be extended

Log

Writing to the log files is done in a simple and expressive way, making debugging easier

Controllers

Temma's controllers are simple to build and operate, and can be easily extended

Views

Smarty templates by default, but also JSON, CSV, RSS, iCal, INI exports

Dependency injection

This component is the backbone of your application developments

Sessions

Record data relating to a user session, to switch to stateful operation.

Cache

To avoid computing the same data again and again, save them to cache

Model

Access to databases is done using the DAO pattern, with or without cache

Plugins

Modify the behavior of your application using pre- or post-controller plugins

Execution flow

Temma uses an easy-to-use plugin system to manage query execution

Helpers

Temma provides severals objects to facilitate some processings.