Download the PHP package ui-awesome/html-helper without Composer

On this page you can find all versions of the php package ui-awesome/html-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package html-helper

UI Awesome

Html Helper


PHPUnit Mutation Testing PHPStan

A powerful PHP library to simplify HTML element creation
Generate attributes, encode content, sanitize HTML, and manage CSS classes with ease.

## โœจ Features ### ๐Ÿ“ฆ Installation ### โšก Quick start #### Attribute key normalization Ensures attribute keys have the correct prefix (like `aria-`, `data-`, or `on`), supporting strings, Enums, and Stringables. #### Attribute bag operations Use `AttributeBag` to query and mutate an attribute array in-place with a minimal API (`get()`, `merge()`, `remove()`, `set()`, `setMany()`). #### Universal Stringable support Pass your domain objects directly to helpers like `Encode`, `Attributes`, or `CSSClass`. The library automatically handles `__toString()`. #### Rendering HTML attributes Use `Attributes::render()` to generate a safe, escaped HTML attribute string from an array. It automatically handles `class` arrays, `style` arrays, and `data-*` expansions. #### Advanced: DOM & SVG Integration When working with `DOMDocument`, `SimpleXMLElement`, or other XML/SVG builders, you should not use pre-escaped strings to avoid "double escaping" (for example, `<`). Use `Attributes::normalizeAttributes()` with `encode: false` to get a flat array of raw values ready for insertion. #### Managing CSS classes Allows you to merge, add, or override CSS classes within an attributes array smartly. #### Encoding Ensures your content and attribute values are safe from XSS. #### Enum normalization Normalizes values against a predefined set, supporting both arrays and Enums. #### Form naming & IDs Generates standard PHP form names and valid HTML IDs, handling arrayable and nested properties effortlessly. #### Template rendering Performs clean token replacement with normalized line endings. #### Line break normalization Collapses multiple line breaks into a single `\n`, useful for cleaning up user input or generated text. #### Validation Enforces strict types and approved values for your HTML logic. ## ๐Ÿ“– Documentation For detailed configuration options and advanced usage. - ๐Ÿ’ก [Usage Examples](docs/examples.md) - ๐Ÿงช [Testing Guide](docs/testing.md) ## ๐Ÿ“‹ Package information [![PHP](https://img.shields.io/badge/%3E%3D8.3-777BB4.svg?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/releases/8.3/en.php) [![Latest Stable Version](https://img.shields.io/packagist/v/ui-awesome/html-helper.svg?style=for-the-badge&logo=packagist&logoColor=white&label=Stable)](https://packagist.org/packages/ui-awesome/html-helper) [![Total Downloads](https://img.shields.io/packagist/dt/ui-awesome/html-helper.svg?style=for-the-badge&logo=composer&logoColor=white&label=Downloads)](https://packagist.org/packages/ui-awesome/html-helper) ## ๐Ÿ† Quality code [![Codecov](https://img.shields.io/codecov/c/github/ui-awesome/html-helper.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/github/ui-awesome/html-helper) [![PHPStan Level Max](https://img.shields.io/badge/PHPStan-Level%20Max-4F5D95.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/ui-awesome/html-helper/actions/workflows/static.yml) [![Super-Linter](https://img.shields.io/github/actions/workflow/status/ui-awesome/html-helper/linter.yml?style=for-the-badge&label=Super-Linter&logo=github)](https://github.com/ui-awesome/html-helper/actions/workflows/linter.yml) [![StyleCI](https://img.shields.io/badge/StyleCI-Passed-44CC11.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.styleci.io/repos/767410135?branch=main) ## ๐ŸŒ Our social networks [![Follow on X](https://img.shields.io/badge/-Follow%20on%20X-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white&labelColor=000000)](https://x.com/Terabytesoftw) ## ๐Ÿ“„ License [![License](https://img.shields.io/badge/License-BSD--3--Clause-brightgreen.svg?style=for-the-badge&logo=opensourceinitiative&logoColor=white&labelColor=555555)](LICENSE)

All versions of html-helper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ui-awesome/html-helper contains the following files

Loading the files please wait ...