PHPackages                             piotrpress/elementor - 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. piotrpress/elementor

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

piotrpress/elementor
====================

This library simplifies HTML elements rendering.

v2.0.0(1y ago)2992MITPHPPHP &gt;=7.4

Since Oct 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PiotrPress/elementor)[ Packagist](https://packagist.org/packages/piotrpress/elementor)[ Docs](https://github.com/PiotrPress/elementor)[ RSS](/packages/piotrpress-elementor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

Elementor
=========

[](#elementor)

This library simplifies HTML elements rendering.

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

[](#installation)

```
$ composer require piotrpress/elementor
```

Example
-------

[](#example)

```
require __DIR__ . '/vendor/autoload.php';

use PiotrPress\Elementor;
use PiotrPress\Elementor\Element;
use PiotrPress\Elementor\Attributes;

// Example #1
echo new Elementor( [
    [ 'div',
        [ 'class' => 'main' ],
        [
            [ 'input',
                [
                    'type' => 'submit',
                    'required'
                ]
            ],
            [ 'a',
                [
                    'href' => 'https://piotr.press',
                    'class' => [ 'red', 'border' ]
                ],
                'Click'
            ]
        ]
    ]
] );
// Click

// Example #2
echo new Element( 'a', [
    'href' => 'https://piotr.press',
    'class' => [ 'red', 'border' ]
], 'Click' );
// Click

// Example #3
echo new Element( 'input', [
    'type' => 'submit',
    'required'
] );
//

// Example #4
echo new Attributes( [
    'href' => 'https://piotr.press',
    'class' => [ 'red', 'border' ]
] );
// href="https://piotr.press" class="red border"
```

Requirements
------------

[](#requirements)

PHP &gt;= `7.4` version.

License
-------

[](#license)

[MIT](license.txt)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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 ~696 days

Total

2

Last Release

609d ago

Major Versions

v1.0.0 → v2.0.02024-09-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10326736?v=4)[Piotr Niewiadomski](/maintainers/PiotrPress)[@PiotrPress](https://github.com/PiotrPress)

---

Top Contributors

[![PiotrPress](https://avatars.githubusercontent.com/u/10326736?v=4)](https://github.com/PiotrPress "PiotrPress (2 commits)")

---

Tags

attributeattributesdom-elementdom-elementselementelementorelementshtml-attributehtml-attributeshtml-domhtml-dom-elementhtml-elementhtml-elementshtml-taghtml-tagsattributeselementorelementsattributeelementHTML Attributeshtml-elementhtml domhtml-taghtml-attributeHTML Tagsdom-elementdom-node

### Embed Badge

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

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

###  Alternatives

[jetbrains/phpstorm-attributes

PhpStorm specific attributes

41416.0M647](/packages/jetbrains-phpstorm-attributes)[koriym/attributes

An annotation/attribute reader

433.4M12](/packages/koriym-attributes)[spatie/html-element

Html rendering in php inspired by hyperscript

191108.9k3](/packages/spatie-html-element)[spiral/attributes

PHP attributes reader

233.6M45](/packages/spiral-attributes)[spatie/php-attribute-reader

A clean API for working with PHP attributes

80216.4k11](/packages/spatie-php-attribute-reader)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)

PHPackages © 2026

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