PHPackages                             namboy94/champlates - 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. namboy94/champlates

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

namboy94/champlates
===================

Templating for PHP 7.1+

1.1.4(7y ago)0185GPL-3.0-or-laterPHPPHP &gt;=7.1.0

Since Jan 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/namboy94/champlates)[ Packagist](https://packagist.org/packages/namboy94/champlates)[ Docs](https://gitlab.namibsun.net/namboy94/champlates)[ RSS](/packages/namboy94-champlates/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Champlates
==========

[](#champlates)

masterdevelop[![build status](https://camo.githubusercontent.com/5a5250f29ce05f4ff609d6858bca66b4e03e406af750a558e5adbeada9edfd16/68747470733a2f2f6769746c61622e6e616d696273756e2e6e65742f6e616d696273756e2f7068702f6368616d706c617465732f6261646765732f6d61737465722f6275696c642e737667)](https://gitlab.namibsun.net/namibsun/php/champlates/commits/master)[![build status](https://camo.githubusercontent.com/c04d61b314b5ced2db0613b5351ce0d3375d972fddf5922beacc749ac05240b0/68747470733a2f2f6769746c61622e6e616d696273756e2e6e65742f6e616d696273756e2f7068702f6368616d706c617465732f6261646765732f646576656c6f702f6275696c642e737667)](https://gitlab.namibsun.net/namibsun/php/champlates/commits/develop)[![Logo](resources/logo/logo-readme.png)](resources/logo/logo-readme.png)

Champlates is a library used for translating and abstracting HTML in PHP. You can use champlates to create your own HTML templates in pure PHP using HtmlElements, or use HTML templates using the HtmlTemplate class. The Dictionary class makes it simple to support multiple languages using translation files which are just normal key value pairs in a JSON file

Installation
------------

[](#installation)

You can use champlates by adding the requirement

```
"namboy94/champlates": "dev-master"

```

to your `composer.json` file an then running `composer install`. You can then find the classes in `vendor/namboy94/champlates/src`. Thanks to autoloader, you should be able to easily access the classes from champlates.

Documentation
-------------

[](#documentation)

All classes and methods are documented using DocBlock comments.

Further Information
-------------------

[](#further-information)

- [Changelog](CHANGELOG)
- [License (GPLv3)](LICENSE)
- [Gitlab](https://gitlab.namibsun.net/namibsun/php/champlates)
- [Github](https://github.com/namboy94/champlates)
- [Progstats](https://progstats.namibsun.net/projects/champlates)
- [Packagist Page](https://packagist.org/packages/namboy94/champlates)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2900d ago

### Community

Maintainers

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

---

Top Contributors

[![namboy94](https://avatars.githubusercontent.com/u/11770870?v=4)](https://github.com/namboy94 "namboy94 (72 commits)")

---

Tags

htmltemplates

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/namboy94-champlates/health.svg)

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

###  Alternatives

[phpoffice/phpword

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

7.5k34.7M186](/packages/phpoffice-phpword)[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)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[exercise/htmlpurifier-bundle

HTMLPurifier integration for your Symfony project

27911.3M16](/packages/exercise-htmlpurifier-bundle)

PHPackages © 2026

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