Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.95 KB

README.markdown

File metadata and controls

61 lines (41 loc) · 1.95 KB

Slim Framework for PHP 5 - Extras

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

Custom Views

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.

How to use a custom View

<?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
//...
?>

Plugins

Coming soon...

About the Author

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.

Open Source License

The Slim Framework for PHP 5 and the additional resources in this repository are released under the MIT public license.

http://www.slimframework.com/license