PHPackages                             levizwannah/php-markup - 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. levizwannah/php-markup

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

levizwannah/php-markup
======================

Allows you to Write HTML using PHP in an elegant manner. And the result is a clean formatted html markup.

v2.1.1(3mo ago)63262MITPHPPHP &gt;=8.0.0

Since Dec 30Pushed 3mo ago1 watchersCompare

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

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

[![Installs](https://camo.githubusercontent.com/e5cfaff6faecb444311699e53faa0e9667f9e98311f4189bed886828187b30d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6576697a77616e6e61682f7068702d6d61726b7570)](https://camo.githubusercontent.com/e5cfaff6faecb444311699e53faa0e9667f9e98311f4189bed886828187b30d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6576697a77616e6e61682f7068702d6d61726b7570)

PHP-Markup
==========

[](#php-markup)

PHP-Markup is a library that allows you to write HTML markup using PHP directly. The library allows you to make components, composite elements, and even overwrite the default HTML tag. Imagine if you want every `p` element to have some default class, you can overwrite the normal `p` element using this library to save you much of the work, keeping things clean and elegant.

requirements
============

[](#requirements)

- PHP version &gt;= 8.0

Usage
=====

[](#usage)

You can use this library to write a whole markup or put an HTML markup within PHP code without opening and closing the PHP tags.

Syntax
======

[](#syntax)

Use the `Markup` Facade which is located in `LeviZwannah\PhpMarkup\Facades` for elegant writing.

```
