Slim is a micro PHP 5 framework that helps you quickly write simple yet powerful RESTful web applications.
This repository contains supplemental files for the Slim Framework, such as custom views and plugins. I created this repository to keep the primary Slim Framework repository as light-weight as possible.
Visit the primary repository
Follow Slim on Twitter
Visit the official website
This repository contains custom View classes for the template frameworks listed below. To use any of these custom View classes, require
the appropriate class in your Slim Framework bootstrap file and initialize your Slim application using an instance of the selected View class (see example below).
- Smarty
- Twig
- Mustache
- Haml
- Haanga
- Blitz
- Dwoo
- Sugar
- Savant
- Rain
- H2o
To learn how to write your own custom View class, visit the Slim Framework documentation.
<?php
//Require the Slim Framework
require_once 'Slim/Slim.php';
//Require the custom View
require_once 'SmartyView.php';
//Init Slim app with the custom View
$app = new Slim(array(
'view' => new SmartyView()
));
//Implement the rest of your application
//...
?>
Coming soon...
The Slim Framework for PHP 5 is created and maintained by Josh Lockhart, a web developer by day at New Media Campaigns, and a hacker by night.
Slim is in active development, and test coverage is continually improving.
The Slim Framework for PHP 5 and the additional resources in this repository are released under the MIT public license.