PHPackages                             ichigotake/nano-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. ichigotake/nano-template

ActiveLibrary[Templating &amp; Views](/categories/templating)

ichigotake/nano-template
========================

Nano template engine with PHP5 language

18[1 issues](https://github.com/ichigotake/php-NanoTemplate/issues)PHP

Since Dec 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ichigotake/php-NanoTemplate)[ Packagist](https://packagist.org/packages/ichigotake/nano-template)[ RSS](/packages/ichigotake-nano-template/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

NAME
====

[](#name)

NanoTemplate - Nano template engine with PHP5 language

USAGE
=====

[](#usage)

All function in example. This module is verrrry simply!

very simply call

```
require 'lib/NanoTemplate.php';

# render($view_file, $binds, $charset);
#
# The second and the following arguments is optional.
# Default charset is "UTF-8"
render('/path/to/view.php', array(
    'greet' => 'hahaha',
    'greet_jp' => 'ごきげんよう',
));

```

or, make instance

```
### index.php
# param(optional): ($view = 'view/', $charset = 'UTF-8')
$t = new NanoTemplate('view/');

# echo template with bind variable
$t->render('template.php', array(
    'greet'    => 'Hello!!',
    'greet_jp' => 'こんにちは！',
));

### view/template.php

 (Japanese mean "")

### view/layout.php

```

Why naming *Nano*?
==================

[](#why-naming-nano)

PHP template engine is already many exists. but almost theres is large or Web Application Framework dependencies.

NanoTemplate don't have expand syntax and assigned vars are not '$this'. also, if you want to assign object vars ;)

NanoeTemplate has only 1 pure PHP file. PHP is template engine it self, because nameing 'Nano'.

AUTHOR
======

[](#author)

ichigotake

LICENSE
=======

[](#license)

[MIT LICENSE](http://opensource.org/licenses/MIT)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e00b0f877198d758530be0b78f852b3f40e81c288e36874fc8d082349f6cd57?d=identicon)[ichigotake](/maintainers/ichigotake)

---

Top Contributors

[![ichigotake](https://avatars.githubusercontent.com/u/381483?v=4)](https://github.com/ichigotake "ichigotake (40 commits)")

### Embed Badge

![Health badge](/badges/ichigotake-nano-template/health.svg)

```
[![Health](https://phpackages.com/badges/ichigotake-nano-template/health.svg)](https://phpackages.com/packages/ichigotake-nano-template)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
