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 8.0+ 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

16

Years of experience in the service of reasoned development

1

Used by the n° 1 site in France on Home/DIY topics, managing +50M 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

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

Helpers

Temma provides severals objects to facilitate some processings.