Download the PHP package dtkahl/php-simple-view without Composer
On this page you can find all versions of the php package dtkahl/php-simple-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-simple-view
Abandoned!
PHP simple view
Simple PHP view renderer.
Dependencies
PHP >= 5.6.0
Installation
Install with Composer:
composer require dtkahl/php-simple-view
Usage
anywhere in PHP
$renderer = new \Dtkahl\SimpleView\ViewRenderer(__DIR__.'/views/');
echo $render->render('example.php', ['name' => 'test']);
/views/example.php
<!DOCTYPE html>
<html>
<head></head>
<body></body>
<html>
Methods
addViewPaths($paths)
add Path(s) where render should search for view files. Returns renderer instance.
render(string $file, array $data = [])
render given view file with given data (as local vars).
All versions of php-simple-view with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package dtkahl/php-simple-view contains the following files
Loading the files please wait ...