2017-25 © Pedro Peláez
 

library plates

Plates View (native php) package for the Slim Framework

image

slim/plates

Plates View (native php) package for the Slim Framework

  • Monday, August 31, 2015
  • by rubenvincenten
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,773 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

Slim/Plates

PHP Slim View for PHP Plates., (*1)

  • Uses the templates path variable from Slim.
  • You can use the same functions as defined in package slim/views.

Example

<?php
/**
 * @var Composer\Autoload\ClassLoader $autoload
 */
$autoload = require 'vendor/autoload.php';

$app = new Slim\Slim();
$app->view(
    new Slim\Views\Plates(function (League\Plates\Engine $engine) use ($app) {
        $engine->loadExtension(new League\Plates\Extension\URI($app->request()->getPathInfo()));
        $engine->loadExtension(new Slim\Views\PlatesExtension);
    })
);

// routes...

$app->run();

installation

version 1.0 requires plates 3.0. If you need to use 2.x, use 0.2. When installing, use * to determine which version to use., (*2)

via composer.json:

{
    "require": {
        "slim/plates": "*"
    }
}

and then, (*3)

composer install

or, (*4)

composer update -o

via command line

composer require slim/plates

The Versions

31/08 2015

dev-master

9999999-dev http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates

31/08 2015

v1.0.2

1.0.2.0 http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates

31/08 2015

v1.0.1

1.0.1.0 http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates

31/08 2015

v1.0.0

1.0.0.0 http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates

29/08 2014

0.2.1

0.2.1.0 http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates

29/08 2014

0.2.0

0.2.0.0 http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates

29/08 2014

0.1

0.1.0.0 http://github.com/rubenvincenten/slim_plates

Plates View (native php) package for the Slim Framework

  Sources   Download

MIT

The Requires

 

by Ruben Vincenten

templating extensions native slimphp plates