PHPackages                             seblucas/dot-php - 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. seblucas/dot-php

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

seblucas/dot-php
================

PHP rendering engine for doT.js (The fastest + concise javascript template engine for nodejs and browsers)

1.1.0(6y ago)46.5k3[1 PRs](https://github.com/seblucas/doT-php/pulls)GPL-2.0PHPPHP &gt;=5.3.0

Since Jul 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/seblucas/doT-php)[ Packagist](https://packagist.org/packages/seblucas/dot-php)[ Docs](https://github.com/seblucas/doT-php)[ RSS](/packages/seblucas-dot-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

doT-php
=======

[](#dot-php)

PHP rendering engine for [doT.js (The fastest + concise javascript template engine for nodejs and browsers)](https://github.com/olado/doT).

How to use it
-------------

[](#how-to-use-it)

```
// Load the library
require_once('resources/doT-php/doT.php');

// Load the template
$page = file_get_contents('templates/page.html');

// instanciate the object
$template = new doT();

// Compile your templace in a PHP function ($dot)
$dot = $template->template($page);

// the data is simple PHP array
$data = array('title' => 'My custom title');

// Write the HTML
echo $dot($data);
```

Warning
-------

[](#warning)

It's far from complete. I needed it just to provide a server side rendering engine for another project ([COPS](https://github.com/seblucas/cops)).

So the code provided works perfectly for the templates of COPS and was never tested elsewhere, doT's unit test were also never tested.

That being said, You can fork, enhance it and send me some pull request, I'll happily merge them.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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.

###  Release Activity

Cadence

Every ~1080 days

Total

2

Last Release

2523d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d38c3b4047d3bfd7bf43c6eb8e65fd2be0588709e7db464ed635168cad4bedd?d=identicon)[mbirth](/maintainers/mbirth)

![](https://www.gravatar.com/avatar/4d298586d0788ab34889931c8becb000d13edf5196d929caaed62ebfb7ca88bf?d=identicon)[seblucas](/maintainers/seblucas)

---

Top Contributors

[![seblucas](https://avatars.githubusercontent.com/u/437682?v=4)](https://github.com/seblucas "seblucas (9 commits)")[![mbirth](https://avatars.githubusercontent.com/u/130302?v=4)](https://github.com/mbirth "mbirth (3 commits)")

---

Tags

dottemplateengineRendering

### Embed Badge

![Health badge](/badges/seblucas-dot-php/health.svg)

```
[![Health](https://phpackages.com/badges/seblucas-dot-php/health.svg)](https://phpackages.com/packages/seblucas-dot-php)
```

###  Alternatives

[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k15.7M683](/packages/latte-latte)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

24085.2k](/packages/anourvalar-office)[templavoilaplus/templavoilaplus

Building kit for custom pages and content elements with individual fields, containers and backend layouts. Supporting drag'n'drop and multiple references.

2637.6k13](/packages/templavoilaplus-templavoilaplus)

PHPackages © 2026

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