Download the PHP package marwanalsoltany/php-html without Composer
On this page you can find all versions of the php package marwanalsoltany/php-html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marwanalsoltany/php-html
More information about marwanalsoltany/php-html
Files in marwanalsoltany/php-html
Package php-html
Short Description A fluent interface for creating HTML using PHP.
License MIT
Homepage https://github.com/MarwanAlsoltany/php-html#readme
Informations about the package php-html
PHP-HTML
A fluent interface for creating HTML using PHP.
[![PHP Version][php-icon]][php-href]
[![Latest Version on Packagist][version-icon]][version-href]
[![Total Downloads][downloads-icon]][downloads-href]
[![License][license-icon]][license-href]
[![Maintenance][maintenance-icon]][maintenance-href]
[![Documentation][documentation-icon]][documentation-href]
[![GitHub Continuous Integration][github-ci-icon]][github-ci-href]
[![GitHub Continuous Deployment][github-cd-icon]][github-cd-href]
[![Codecov][codecov-icon]][codecov-href]
[![Open in Visual Studio Code][vscode-icon]][vscode-href]
[![Tweet][tweet-icon]][tweet-href] [![Star][github-stars-icon]][github-stars-href]
Table of Contents
[About](#about)
[Installation](#installation)
[Examples](#examples)
[More](#more)
[Changelog](./CHANGELOG.md)
If you like this project and would like to support its development, giving it a :star: would be appreciated!
Installation
Using Composer:
[![GitHub Continuous Integration][github-ci-icon]][github-ci-href] [![GitHub Continuous Deployment][github-cd-icon]][github-cd-href] [![Codecov][codecov-icon]][codecov-href] [![Open in Visual Studio Code][vscode-icon]][vscode-href] [![Tweet][tweet-icon]][tweet-href] [![Star][github-stars-icon]][github-stars-href]
Table of Contents
[About](#about)
[Installation](#installation)
[Examples](#examples)
[More](#more)
[Changelog](./CHANGELOG.md)
If you like this project and would like to support its development, giving it a :star: would be appreciated!
Install PHP-HTML through Composer using:
Why Does This Exist?
Why not?
This is something that I exclusively created for myself. The real reason why this exist is, I really hate writing HTML within PHP code (especially in classes). If it is more than one line and it is not a template, it looks really ugly and it doesn't feel like it belongs to the code although it does. This package provides a fluent interface for the sole reason of not writing raw HTML in PHP. It also indents and validates the generated HTML and provides IDE-IntelliSense for all HTML elements to make it as easy as it gets.
Examples
Here is an example of how it works:
The generated HTML would look like this:
License
PHP-HTML is an open-source project licensed under the MIT license.
Copyright (c) 2022 Marwan Al-Soltany. All rights reserved.