Download the PHP package webfiori/ui without Composer

On this page you can find all versions of the php package webfiori/ui. 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 ui

WebFiori UI

A PHP library for creating HTML documents and DOM manipulation with an object-oriented approach.

PHP 8.1+

Motivations

PHP's built-in DOMDocument works but has friction for HTML generation:

This library's sweet spot is generating HTML from PHP — pages, emails, components — where a builder pattern and template system give better DX than the W3C DOM API.

This is a DOM builder, not a text-based template engine. If you need template inheritance, compiled templates, or a dedicated syntax (like Blade or Twig), use those instead. Use this library when you want to construct and manipulate HTML programmatically — server-rendered components, email generation, PDF markup, or any case where the structure is driven by logic rather than a layout file.

Table of Contents

Key Features

Supported PHP Versions

Build Status

Installation

Quick Start

Usage

HTML Document Creation

Working with Elements

Forms and Input

Tables and Data

Template System

HTML templates with slots:

PHP templates with variables:

API Reference

Core Classes

Class Description
HTMLNode Foundation class for all HTML elements
HTMLDoc Represents a complete HTML document
HeadNode The HTML head section
HTMLTable Table creation and manipulation
HtmlRenderer Standalone renderer with per-instance config
TemplateCompiler HTML/PHP template loading and compilation

Key Methods (HTMLNode)

Method Description
addChild($node, $attrs) Add a child element
setAttribute($name, $val) Set an attribute
text($text) Set text content
toHTML($formatted) Render to HTML string
toXML($formatted) Render to XML string
fromFile($path, $vars) Load from template
fromFileAsDocument($path, $vars) Load as HTMLDoc
fromFileAsNode($path, $vars) Load as single node
fromFileAsArray($path, $vars) Load as node array

Testing

Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Clone the repository
  2. Install dependencies: composer install
  3. Run tests: cd tests && php ../vendor/bin/phpunit
  4. Check code style: composer fix-cs

License

This library is licensed under the MIT License. See the LICENSE file for details.

Support

If you encounter any issues, please open an issue on GitHub.

Changelog

See Releases for version history.


All versions of ui with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
webfiori/collections Version 2.0.x
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 webfiori/ui contains the following files

Loading the files please wait ...