codemonster-ru/view-php
最新稳定版本:v2.1.0
Composer 安装命令:
composer require codemonster-ru/view-php
包简介
PHP template engine for codemonster-ru/view
README 文档
README
PHP template engine for the codemonster-ru/view core.
Uses the core Locator for consistent file resolution (dot-notation, namespaces, multiple base paths).
📦 Installation
Via Composer:
composer require codemonster-ru/view-php
🚀 Usage
use Codemonster\View\View; use Codemonster\View\Locator\DefaultLocator; use Codemonster\View\Engines\PhpEngine; $locator = new DefaultLocator([__DIR__ . '/resources/views']); // can be an array $engine = new PhpEngine($locator, 'php'); // or ['phtml','php'] $view = new View(['php' => $engine], 'php'); echo $view->render('emails.welcome', ['user' => 'Vasya']);
🧪 Testing
You can run tests with the command:
composer test
👨💻 Author
📜 License
统计信息
- 总下载量: 159
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-27