PHPackages                             phdom/phdom - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phdom/phdom

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phdom/phdom
===========

This library help you work with html/php

01PHP

Since Feb 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nizomovkamron/PHDOM)[ Packagist](https://packagist.org/packages/phdom/phdom)[ RSS](/packages/phdom-phdom/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHDOM
=====

[](#phdom)

The library is usually used to easily add html codes to php in a couple of lines of code! See a comparison with regular php code where html tags are used and look at examples of the PhDOM library! Noticeable right?

Plain php:
==========

[](#plain-php)

` `

PhDOM example:
--------------

[](#phdom-example)

``
Conclusion: `Kamron`

Examples:
---------

[](#examples)

`echo h2('Hello World!')` -&gt; Hello World

`loop(5,'Hello World!',['br'=>true]);` -&gt;
Hello World
Hello World
Hello World
Hello World
Hello World

`echo font('cursive','Hello World!');` -&gt;
`Hello World!`

`echo h4('Hello!',['id'=>'test']);` -&gt; `Hello`

`echo h4('Hello!',['class'=>'test']);` -&gt; `Hello`

Functions:
==========

[](#functions)

**loop(),
br(), h(1,2,3,4,5,6)(), p(), alert(), console(), serif(), serif2(), aharoni(), lower(), up(), upper(), mono(), create(), consolewarn(), consoleinfo(), consoleerror(), dump(), pr(), chars(), div(), pre(), times(), dates(), a(), and others...**

Global Variables
================

[](#global-variables)

$\_POST = $post; $\_GET = $get; $\_COOKIE = $cook;

Example with Div
================

[](#example-with-div)

`div('Hello World!',['id'=>'div','class'=>'div']);   Result => Hello World!`

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/853344a2fb234d97d791db88d3edda393e19db25dcc55e44881239f4b078e980?d=identicon)[kamron](/maintainers/kamron)

---

Top Contributors

[![nizomovkamron](https://avatars.githubusercontent.com/u/47291727?v=4)](https://github.com/nizomovkamron "nizomovkamron (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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