Skip to content
 
 

Latest commit

 

History

26 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

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
关注 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...

关于 the Author

The Slim Framework for PHP 5 is created and maintained by Josh Lockhart, a web developer by day at 新建 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

关于

Additional resources for the Slim Framework for PHP 5

Resources

Stars

1 star

关注者

0 watching

复刻s

发布

贡献者