fenom/fenom 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fenom/fenom

最新稳定版本:v3.0.0

Composer 安装命令:

composer require fenom/fenom

包简介

Fenom - excellent template engine for PHP

README 文档

README

Create issue if you want to be a maintainer of Fenom

Fenom - Template Engine for PHP

Fenóm - lightweight and fast template engine for PHP.

Quick Start

Install

If you use composer in your project then you can to install Fenom as package.

Setup

There is two-way to create Fenom instance:

  • Long way: use operator new
  • Shot way: use static factory-method

Long way. Create you own template provider or default provider Fenom\Provider (that is provider read there). Using provider instance create Fenom instance:

$fenom = new Fenom(new Fenom\Provider($template_dir));

After that, set compile directory:

$fenom->setCompileDir($template_cache_dir);

This directory will be used for storing compiled templates, therefore it should be writable for Fenom. Now Fenom is ready to work and now you can to configure it:

$fenom->setOptions($options);

Short way. Creating an object via factory method with arguments from long way.

$fenom = Fenom::factory($template_dir, $template_cache_dir, $options);

Now Fenom is ready to work.

Usage

Example

统计信息

  • 总下载量: 95.17k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 452
  • 点击次数: 1
  • 依赖项目数: 26
  • 推荐数: 3

GitHub 信息

  • Stars: 445
  • Watchers: 46
  • Forks: 109
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-07-02