GithubHelp home page GithubHelp logo

edvanbeinum / slim-extras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeguy/slim-extras

1.0 2.0 0.0 244 KB

Additional resources for the Slim Framework for PHP 5

Home Page: http://www.slimframework.com

PHP 100.00%

slim-extras's Introduction

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

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
Slim::init(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

slim-extras's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.