PHPackages                             pukomuko/phemplate - 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. pukomuko/phemplate

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

pukomuko/phemplate
==================

simple template script

081PHP

Since Nov 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tsivickas/phemplate)[ Packagist](https://packagist.org/packages/pukomuko/phemplate)[ RSS](/packages/pukomuko-phemplate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

phemplate
=========

[](#phemplate)

phemplate

//---------------------------------------------------------------------------// // author: pukomuko // date: 2001.03.15 // web: // info: template engine // // //---------------------------------------------------------------------------// // copyleft license // // this software is provided 'as-is', without any express or implied // warranty. in no event will the authors be held liable for any damages // arising from the use of this software. // // permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute it // freely, subject to the following restrictions: // // 1. the origin of this software must not be misrepresented; // you must not claim that you wrote the original software. // if you use this software in a product, an acknowledgment // in the product documentation would be appreciated but is not required. // // 2. altered source versions must be plainly marked as such, // and must not be misrepresented as being the original software. // // 3. mail about the fact of using this class in production // would be very appreciated. // // 4. this notice may not be removed or altered from any source distribution. // //---------------------------------------------------------------------------// // changes: // // 2004.04.21 // - warining on empty file // \* v1.10.1 // // 2004.03.04 // + TPL\_LOOPOPT -&gt; TPL\_OPTLOOP // + TPL\_PARSEDLOOP -&gt; TPL\_PARSEDLOOP // \* v1.10 // // 2004.03.03 // + TPL\_LOOP\_INNER\_PARSED // + TPL\_LOOP\_INNER\_OPTIONAL // \* v1.10beta2 // // 2004.03.02 // + TPL\_STRIP\_UTF\_HEADER // + TPL\_PARSEDLOOP // + TPL\_LOOPOPT // \* v1.10beta // + utf header matching // // 2004.03.01 // - process() bugfix // \* v1.9.4 // // 2003.10.20 // - parse() bugfix // \* v1.9.3 // // 2003.08.12 // - remove\_nonjs bugfix // \* v1.9.2 // // 2003.06.29 // \* optional now works with 0 and '0' // \* v1.9.1 // // 2003.06.19 // + custom block syntax, thanks to G. van den Hoven // + set\_block\_syntax() // + tie\_loop() // + tie\_var() // \* v1.9 // // 2003.06.17 // \* parse() works faster, thanks to Sergej Kurakin // - remove\_nonjs bugfix // + error handler support // // 2003.06.16 // - set\_root() bug // // 2003.03.14 // + process() now accepts parameters as bits, thanks to Audrius Karabanovas // + set\_params() set default parameters for process() // \* v1.8.1 // // 2003.03.14 // + phpdoc comments // \* v1.8 // // 2002.11.13 // - $block\_names no more // - bug in extract blocks // // 2002.09.24 // \* parse now accpets string instead of handle // + optional() // \* root change // // 2002.03.23 // - bug with templates caintaining { a { b } // \* v1.7.1 // // 2002.03.03 // \* fopen fread fclose instead of implode(file()), up to 3x faster // + remove\_nonjs - remove only variables that have no spaces in them // \* speed improvements, got rid of list() = each() // + license :\] // \* v1.7 // // 2002.03.02 // - deleted space before each line in the parsed template. // - error in method error() :\] // \* v1.6.2 note released :\] // // 2001.12.06 // - bug then text had only } // \* v1.6.1 // // 2001.10.31 // + error on unclosed block // + nested blocks // \* v1.6 // // 2001.09.17 // - fixed bug with 'keep' // // 2001.09.02 // + get\_var\_silent() // // 2001.08.09 // + error handler // // 2001.07.04 // + one pass substitution // // 2001.05.28 // + block name recording // \* v1.5.1 // // 2001.05.10 // - bug in documentation // // 2001.05.08 // \* first public release v1.5 // // 2001.04.04 // \* changed blocks setup, constructor parameters change // - error bug // - some warnings

/\*\* \*/

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

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/730102997b7e9440d4559079ff0246d0c9fe1c46ba876510c58f2bdb5203b94a?d=identicon)[tsivickas](/maintainers/tsivickas)

---

Top Contributors

[![tsivickas](https://avatars.githubusercontent.com/u/1920985?v=4)](https://github.com/tsivickas "tsivickas (6 commits)")

### Embed Badge

![Health badge](/badges/pukomuko-phemplate/health.svg)

```
[![Health](https://phpackages.com/badges/pukomuko-phemplate/health.svg)](https://phpackages.com/packages/pukomuko-phemplate)
```

###  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)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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