flaviovs / uview
Micro view templating system for PHP
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/flaviovs/uview
Requires
- php: >=5.4.0
Requires (Dev)
- havramar/phpunit-tmp-dir: dev-master
- phpunit/phpunit: >=4
This package is not auto-updated.
Last update: 2025-10-17 23:16:49 UTC
README
Usage:
$registry = new UView\Registry('/path/of/view/files');
# (...)
try {
# Will try to load '/path/of/view/files/page.php'
$view = $registry->get('page');
} catch (RuntimeException $ex) {
die('Could not find view file');
}
$view->set('user_name', 'John Smith');
$view->set('user_login', 'john.smith');
echo $view;