PHPackages                             erykai/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. erykai/template

ActiveLibrary

erykai/template
===============

Populate template

v1.1.5(3y ago)1511MITPHPPHP &gt;=8.0

Since Nov 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Erykai/template)[ Packagist](https://packagist.org/packages/erykai/template)[ GitHub Sponsors](https://github.com/Erykai)[ RSS](/packages/erykai-template/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (1)

Template
========

[](#template)

Populate template

[![Maintainer](https://camo.githubusercontent.com/8d0c30a6e6bb0e588086373acb7d3cb9c1ff2135f91a52d1a7a99a8670aa1090/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40616c657864656f766964616c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://instagram.com/alexdeovidal)[![Source Code](https://camo.githubusercontent.com/2424c562e6ecd42812977f5ac72581ae7153b1eabd1226a6646fa591d7f2d7d3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6572796b61692f74656d706c6174652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/erykai/template)[![PHP from Packagist](https://camo.githubusercontent.com/00fb517b4e9c293951f3974f21f26d27c593d4db2ea424577ec70d9ecdb96e21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6572796b61692f74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erykai/template)[![Latest Version](https://camo.githubusercontent.com/7b3753a5ac1d36e14e6170565a6496a7b401bb4244998d01293653ec6e4965fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6572796b61692f74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://github.com/erykai/template/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/69554911ce85ae29f74888b018bf56c3c0fa2c00d616bc744c08454762de6a3d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6572796b61692f74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/erykai/template)[![Total Downloads](https://camo.githubusercontent.com/a76ec75db82210215172620284a6a204989a91651cd37cf117ea1df6c2d10aec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6572796b61692f74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erykai/template)

create config.php

```
$path =  __DIR__ . '/public/theme';
define('TEMPLATE_PATH', $path);
const TEMPLATE_URL = 'https://lvh.me';
const TEMPLATE_CLIENT = 'client';
const TEMPLATE_DEFAULT = 'default';
const TEMPLATE_DASHBOARD = 'admin';
const TEMPLATE_REGEX_GLOBAL = '/{{([A-Z_]+)}}/';
const TEMPLATE_REGEX_TEXT = '/{{([a-zA-Zà-úÀ-Ú0-9|-|_|?!.,\' ]+)}}/';
const TEMPLATE_REGEX_ROUTE = '/{{#(\/[a-z-]+[\/|[a-z])+#}}/';
```

create translate.php

```
const TRANSLATE_PATH = 'translate';
const TRANSLATE_API_KEY = null;
const TRANSLATE_API_URL = 'https://translate.erykia.com/api/v1';
const TRANSLATE_DEFAULT = 'pt-BR';
```

example create path "public/theme/admin/index.html" insert in index.html

```

{{Hello World}}
{{About}}
{{Login}}\
```

and "public/theme/admin/pages/home.html" insert in home.html

```
{{Home}}
{{Contact}}
```

```
require "config.php";
require "translate.php";
require "vendor/autoload.php";
use Erykai\Template\Template;
$T = new Template(TEMPLATE_DASHBOARD);

$T->nav("index","pages/home");
echo $T->getIndex();
```

Contribution
------------

[](#contribution)

All contributions will be analyzed, if you make more than one change, make the commit one by one.

Support
-------

[](#support)

If you find defaults send an email reporting to .

Credits
-------

[](#credits)

- [Alex de O. Vidal](https://github.com/alexdeovidal) (Developer)
- [All contributions](https://github.com/erykai/template/contributors) (Contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License](https://github.com/erykai/template/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~20 days

Recently: every ~1 days

Total

8

Last Release

1124d ago

Major Versions

v0.0.1-beta → v1.0.02022-11-22

### Community

Maintainers

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

---

Top Contributors

[![alexdeovidal](https://avatars.githubusercontent.com/u/8947446?v=4)](https://github.com/alexdeovidal "alexdeovidal (17 commits)")

### Embed Badge

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

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

PHPackages © 2026

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