PiotrPress / elementor

This library simplifies HTML elements rendering.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elementor

This library simplifies HTML elements rendering.

Installation

$ composer require piotrpress/elementor

Usage

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

use PiotrPress\Elementor;

echo ( new Elementor( 'a', [ 
    'href' => 'https://piotr.press',
    'class' => [ 'red', 'border' ]
], 'Click' ) );
// <a href="https://piotr.press" class="red border">Click</a>

echo ( new Elementor( 'input', [
    'type' => 'submit',
    'required'
] ) );
// <input type="submit" required />

Requirements

PHP >= 7.4 version.

License

MIT