2017 © Pedro Peláez
 

library slim3-mustache-view

PHP Mustache view class for Slim 3 Framework

image

andrewslince/slim3-mustache-view

PHP Mustache view class for Slim 3 Framework

  • Sunday, November 27, 2016
  • by andrewslince
  • Repository
  • 1 Watchers
  • 3 Stars
  • 88 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 7 Versions
  • 96 % Grown

The README.md

Slim 3 Framework Mustache View

Build Status Latest Stable Version Scrutinizer Code Quality License, (*1)

A PHP Mustache class for render views on Slim 3 Framework., (*2)

Requirements

  • Slim 3.0.0 or newer;
  • PHP 5.6 or newer.

Install

Via Composer:, (*3)

``` bash $ composer require andrewslince/slim3-mustache-view, (*4)


## Usage ```php <?php $app = new \Slim\App([ // your application settings ]); // get application container $container = $app->getContainer(); // register view template engine and configurations $container['renderer'] = function () { return new \Slim\Views\Mustache([ // REQUIRED 'template' => [ // REQUIRED 'paths' => [ realpath('./templates') ], // optional 'extension' => 'html', // optional 'charset' => 'utf-8', ], // put other mustache options here¹ ]); }; // use the render() method in your application routes $app->get('/', function ($request, $response, $args) { // render your view return $this->renderer->render( $response, 'index', $args ); }); $app->run();

NOTES:, (*5)

¹ See other Mustache options here., (*6)

Testing

To running unit tests, executes the command below:, (*7)

./vendor/bin/phpunit -c phpunit.xml.dist

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

27/11 2016

dev-master

9999999-dev

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view

27/11 2016

1.0.5

1.0.5.0

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view

26/11 2016

1.0.4

1.0.4.0

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view

26/11 2016

1.0.3

1.0.3.0

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view

24/11 2016

1.0.2

1.0.2.0

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view

20/11 2016

1.0.1

1.0.1.0

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view

20/11 2016

1.0.0

1.0.0.0

PHP Mustache view class for Slim 3 Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrews Lince

framework mustache slim view