PHPackages                             velas/echox - 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. velas/echox

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

velas/echox
===========

Simple template engine for php 8.2 without aditional dependences

v1.0.0(1y ago)08[1 issues](https://github.com/victorvelas/echox/issues)MITPHPPHP ^8.2

Since Nov 14Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/victorvelas/echox)[ Packagist](https://packagist.org/packages/velas/echox)[ Docs](https://github.com/victorvelas/echox)[ RSS](/packages/velas-echox/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Echox PHP
=========

[](#echox-php)

Echox is a library that takes echo for html content to another level.

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

[](#installation)

Create a new PHP project (or go to the existing project's directory), open your favorite terminal of yesterday and today and run the next [Composer](http://getcomposer.org) command.

```
composer require velas/echox

```

Usage
-----

[](#usage)

In order to keep the order in your project, Echox has been created to works with a folder shared in all your project, all views that will be rendered by the library must to be in this folder. By default, echox will try to read all views located in `views` folder, if you want to read another directory you must to specify it using the next code:

```
use Velas\Echox\Html;
Html::$baseFolder = './your-custom-view-directory/'; // './views/' by default'
```

You can use any directory to save your view files, however we recommend to use only one directory for the view layer, in order to keep your project files organized an clean

With the **renderHTML function**, you can keep clean code by separating the business logic and views into different files like this

```
use function Velas\Echox\Functions\renderHTML;

include './vendor/autoload.php';

/**
 * Some logic
 */

echo renderHtml('presentation', [
    'user' => 'Velas - dev',
    'echoxIsCool' => true
]);
```

This code will write in buffer out the next code in views/presentation.php file

```
Hello World, welcome again

    Now you can write php code like a boss

```

Dou you like it? see more about echox [here](https://www.youtube.com/watch?v=xvFZjo5PgG0)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance53

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

550d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f784f2dc50efe03fb00bf0b62113479896608aeb7b1f7e370b66301dde97cd2?d=identicon)[evilDev](/maintainers/evilDev)

---

Top Contributors

[![victorvelas](https://avatars.githubusercontent.com/u/183737378?v=4)](https://github.com/victorvelas "victorvelas (3 commits)")

---

Tags

html5mvcphprenderingtemplate-engineviewhtmltemplatingmvcviewtemplate engine

### Embed Badge

![Health badge](/badges/velas-echox/health.svg)

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

###  Alternatives

[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)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[ogheo/yii2-htmlcompress

Compress HTML output into a single line

20184.4k1](/packages/ogheo-yii2-htmlcompress)[view-components/view-components

Flexible Framework-Agnostic UI for Enterprise Web Applications

2498.7k7](/packages/view-components-view-components)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.4k3](/packages/talesoft-tale-pug)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)

PHPackages © 2026

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