PHPackages                             tdt/pages - 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. tdt/pages

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

tdt/pages
=========

A library to print nice pages quickly

v0.0.2(12y ago)04452AGPLv3PHP

Since Aug 7Pushed 12y ago2 watchersCompare

[ Source](https://github.com/tdt/pages)[ Packagist](https://packagist.org/packages/tdt/pages)[ Docs](http://thedatatank.com)[ RSS](/packages/tdt-pages/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (4)Used By (2)

tdt/pages
=========

[](#tdtpages)

A library to print nice pages quickly

Why
---

[](#why)

When we need nice pages across a project which main focus is API output, and not a CMS, we might use a very simple and light system to print simple, yet beautiful and interactive pages.

Usage
-----

[](#usage)

```
use tdt\pages\Generator;

$generator = new Generator();
// Set title
$generator->setTitle("This is an example page");

// Add a javascript library
$generator->addJS("http://....js");

// Add some CSS
$generator->addCSS("http://....css");

// Add a menu item: title, url, active, open in new window
$generator->addMenuItem("This page", "#", true, false);

// Generate the page
$generator->generate("Hello World!");
```

Copyright &amp; license
-----------------------

[](#copyright--license)

© OKFN Belgium AGPLv3

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

2

Last Release

4710d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/af95b988ec0a5527b14f7ff9d0c3c43b0b89f0abaff5b741f6be4c37aaebe4b8?d=identicon)[pietercolpaert](/maintainers/pietercolpaert)

![](https://www.gravatar.com/avatar/ea7deaa6beab35e56598e71e03d8ca3560856815c7aff95269f85eb572f3c8ac?d=identicon)[coreation](/maintainers/coreation)

---

Top Contributors

[![dive-michiel](https://avatars.githubusercontent.com/u/2650975?v=4)](https://github.com/dive-michiel "dive-michiel (3 commits)")[![pietercolpaert](https://avatars.githubusercontent.com/u/347073?v=4)](https://github.com/pietercolpaert "pietercolpaert (2 commits)")[![maaikescherrens](https://avatars.githubusercontent.com/u/4905213?v=4)](https://github.com/maaikescherrens "maaikescherrens (1 commits)")

---

Tags

templatepages

### Embed Badge

![Health badge](/badges/tdt-pages/health.svg)

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k37.4M220](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

418145.2M56](/packages/rize-uri-template)[wrklst/docxmustache

docx template manipulation class, based on mustache templating language

578.3k](/packages/wrklst-docxmustache)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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