The simple and efficient
PHP framework

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

Temma = the functionality of a modern framework
+ the flexibility that makes PHP so strong
+ easy to learn and use

Introduction

Temma in 3 minutes.
The basics of a website in a few simple steps.

Documentation

All framework functionalities, from the basics to specific extensions.

FAQ

Frequently asked questions
Answers to all your Temma questions.
Skriv
Rolis
Ooreka
Artisan Game Studios
Quart de lune
Lagom Architect
Temma is a simple and efficient MVC framework
  • modern, PHP 8.0+ compatible
  • relational and noSQL databases
  • unified management of data sources and APIs
  • 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

Temma's basics in 3 minutes

A quick presentation with real code

Migration

The main differences between Temma 1.x and version 2

Installation

Temma installation is very easy

Configuration

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

External libraries

Integrate easily external libraries to your projects

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

Data sources

Unified access to different data sources (SQL, Redis, Memcache, files, S3, SQS, Beanstalkd…)

Model

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

Execution flow

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

Plugins

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

Attributes

Protect or modify access to controllers and actions using PHP attributes

Tests

Write automated test scripts

Command-line interface

Easily run command-line scripts, initialized by Temma

Server-sent events

To send real-time events from the server to the client

Helpers

Temma provides severals objects to facilitate some processings