Download the PHP package jibundeyare/silex-php-view without Composer
On this page you can find all versions of the php package jibundeyare/silex-php-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jibundeyare/silex-php-view
More information about jibundeyare/silex-php-view
Files in jibundeyare/silex-php-view
Download jibundeyare/silex-php-view
More information about jibundeyare/silex-php-view
Files in jibundeyare/silex-php-view
Vendor jibundeyare
Package silex-php-view
Short Description A minimal php view service provider for silex framework
License MIT
Homepage https://github.com/jibundeyare/silex-php-view
Package silex-php-view
Short Description A minimal php view service provider for silex framework
License MIT
Homepage https://github.com/jibundeyare/silex-php-view
Please rate this library. Is it a good library?
Informations about the package silex-php-view
SilexPhpView
A minimal php view service for silex framework
install
Open a terminal, go to your project directory and type:
composer require jibundeyare/silex-php-view
parameters
view.path : Path to the directory containing php template files.
views directory
It is recommended to create a separate directory to store the views.
In the examples, we use the following directory structure:
project/
public/
index.php
templates/
hello.php
vendor/
registering
// public/index.php
$app->register(new SilexPhpView\ViewServiceProvider(), [
'view.path' => __DIR__.'/../templates',
]);
usage
// public/index.php
$app->get('/test', function() use($app) {
$greeting = 'Hello!';
return $app['view']->render('hello.php', [
'greeting' => $greeting,
]);
});
// templates/hello.php
echo $greeting;
All versions of silex-php-view with dependencies
PHP Build Version
Package Version
Requires
jibundeyare/raw-php-view Version
~1.0
The package jibundeyare/silex-php-view contains the following files
Loading the files please wait ....