PHPackages                             sageit/markupengine - 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. sageit/markupengine

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

sageit/markupengine
===================

Allows you to create HTML custom tags that aids in templating and providing easy to use extendable functionality that designers find easy to work with.

1.0.6(5y ago)410MITPHPPHP ^7.0

Since Oct 6Pushed 3y agoCompare

[ Source](https://github.com/SageITSolutions/MarkupEngine)[ Packagist](https://packagist.org/packages/sageit/markupengine)[ RSS](/packages/sageit-markupengine/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

 [ ![Logo](images/logo.png) ](https://github.com/SageITSolutions/MarkupEngine)MarkupEngine
============

[](#markupengine)

[![Latest Stable Version](https://camo.githubusercontent.com/fd82e36d65908429f6940cb00129c0cc5b0f22a9652d9a8541db28b92a9aca39/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f6d61726b7570656e67696e652f763f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/markupengine)[![Total Downloads](https://camo.githubusercontent.com/ee2eeac9eefb1e5449196c5212fc521d2625975c269801cfc6dddd79fcf18b51/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f6d61726b7570656e67696e652f646f776e6c6f6164733f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/markupengine)[![Latest Unstable Version](https://camo.githubusercontent.com/34e0c220c19541f2e59318dbfc05e41f2c4e7a21c0bb98b731bc4025a7c337e6/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f6d61726b7570656e67696e652f762f756e737461626c653f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/markupengine)[![License](https://camo.githubusercontent.com/7c0f1d0d0f309bb20bf58ed29a098d9191f594bc96dc00ede645238bc63c5616/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f6d61726b7570656e67696e652f6c6963656e73653f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/markupengine)[![PHP Version Require](https://camo.githubusercontent.com/5f06a73509e9a65e02d84674ba342f7e3403b4485b35e72ea50870c435b1fa67/687474703a2f2f706f7365722e707567782e6f72672f7361676569742f6d61726b7570656e67696e652f726571756972652f7068703f7374796c653d706c6173746963)](https://packagist.org/packages/sageit/markupengine)

 Allows you to create HTML markup tags that are rendered via class extensions to the included CustomMarkup Class. Markup intended for simple visual elements reaused throughout code and should not inlcude Database calls (separate of View and Modal)

**[Explore the docs »](https://github.com/SageITSolutions/MarkupEngine)**

**[View Demo](https://github.com/SageITSolutions/MarkupEngine)** · **[Report Bug](https://github.com/SageITSolutions/MarkupEngine/issues)** · **[Request Feature](https://github.com/SageITSolutions/MarkupEngine/issues)**

Table of Contents
-----------------

[](#table-of-contents)

- [About the Project](#about-the-project)
    - [Built With](#built-with)
- [Getting Started](#getting-started)
    - [Installation](#installation)
- [Usage](#usage)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)
- [Acknowledgements](#acknowledgements)

About The Project
-----------------

[](#about-the-project)

### Built With

[](#built-with)

- [vscode](https://code.visualstudio.com/)
- [php 7.3.5](https://www.php.net/releases/7_3_5.php)
- [php Herdoc](https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc)

Getting Started
---------------

[](#getting-started)

To get a local copy up and running follow these simple steps.

### Installation

[](#installation)

**Git:**

```
git clone https://github.com/SageITSolutions/MarkupEngine.git
```

**Composer:**

```
composer require sageit/markupengine
```

Usage
-----

[](#usage)

This project consists of an included MarkupEngine class which parses custom HTML tags into valid HTML.

**Components:**

- MarkupEngine.php class (parser)
- CustomMarkup.php class (abstract base class used by parser)
- tags/mytagname.php (customizable folder containing tag classes which must extend CustomMarkup)

### Example Tag.

[](#example-tag)

```

    This is an example block of code.
    This body would return as the Tag's "Content" while some would be an accessible attribute in the header class.

```

### Integrated Example

[](#integrated-example)

```

    Example Page

```

**Inside the related tag file; tags/youtube.php:**

```

```

**Resulting output:**

```

   "http://www.w3.org/TR/html4/strict.dtd">

    Example Page

```

Roadmap
-------

[](#roadmap)

See the [open issues](https://github.com/SageITSolutions/MarkupEngine/issues) for a list of proposed features (and known issues).

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE` for more information.

Contact
-------

[](#contact)

Sage IT Solutions - [Email](mailto:daniel.davis@sageitsolutions.net)

Project Link:

Acknowledgements
----------------

[](#acknowledgements)

- [buggedcom Original Lib](https://github.com/buggedcom/PHP-Custom-Tags)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

6

Last Release

2048d ago

PHP version history (2 changes)1.0PHP &gt;=7.0

1.0.2PHP ^7.0

### Community

Maintainers

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

---

Tags

htmltagsmarkupcustom tags

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k15.7M683](/packages/latte-latte)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[exercise/htmlpurifier-bundle

HTMLPurifier integration for your Symfony project

27911.3M16](/packages/exercise-htmlpurifier-bundle)[twig/markdown-extra

A Twig extension for Markdown

12114.3M83](/packages/twig-markdown-extra)[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)

PHPackages © 2026

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