Download the PHP
package ui-awesome/html-core without Composer
On this page you can find all versions of the php package
ui-awesome/html-core. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor ui-awesome Package html-core Short Description Core HTML tag rendering foundation for PHP: abstract bases for block, inline, input, and void elements, lifecycle hooks, simple factory, and defaults/theme providers. License
BSD-3-Clause
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.
A type-safe PHP library for standards-compliant HTML tag rendering Build and render block, inline, input, and void elements with immutable fluent APIs.
## Features
### Installation
### Quick start
#### Rendering HTML tags with enums
Renders begin/end tags and full elements using standards-compliant tag enums.
#### Rendering a full element (with optional content encoding)
#### Rendering void elements with structured attributes
Void tags render without closing tags. Complex attributes (like `class` arrays and `data` arrays) are rendered via the
installed `ui-awesome/html-helper` dependency.
#### Input elements with prefix/suffix templates
Input elements render the input tag with optional prefix and suffix segments through the same template primitives used
by inline elements.
#### Building custom elements with immutable fluent APIs
Create your own element classes by extending the provided base elements.
#### Nested rendering with `begin()` / `end()`
`BaseBlock` supports stack-based begin/end rendering, with protection against mismatched tags.
#### Inline elements with prefix/suffix and templates
Inline elements can render prefix and suffix segments, optionally wrapped in their own tags.
#### Defaults and theming via providers
You can apply configuration through global defaults, per-instance defaults, and optional default/theme providers.
#### Class-level defaults with `loadDefault()`
For a simpler approach without separate provider classes, override `loadDefault()` in your tag class. These defaults are
applied automatically when `tag()` is called.
Configuration priority (from weakest to strongest):
1. Global defaults via `SimpleFactory::setDefaults()`
2. Class defaults from `loadDefault()`
3. User defaults passed to `tag()`
#### Extensibility
This library is agnostic and designed to be extended. You can define your own tag collections (for example, for SVG,
MathML, or Web Components) with custom string-backed enums.
- `Html::element()` handles generic open/content/close rendering.
- `Html::inline()` handles inline rendering.
- `Html::void()` handles void rendering.
You can create a custom enum for your specific domain and use it with `html-core`.
## Documentation
For detailed configuration options and advanced usage.
- [Testing Guide](docs/testing.md)
- [Upgrade Guide](UPGRADE.md)
## Package information
[](https://www.php.net/releases/8.3/en.php)
[](https://packagist.org/packages/ui-awesome/html-core)
[](https://packagist.org/packages/ui-awesome/html-core)
## Quality code
[](https://codecov.io/github/ui-awesome/html-core)
[](https://github.com/ui-awesome/html-core/actions/workflows/static.yml)
[](https://github.com/ui-awesome/html-core/actions/workflows/linter.yml)
[](https://github.styleci.io/repos/779611775?branch=main)
## Our social networks
[](https://x.com/Terabytesoftw)
## License
[](LICENSE)
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-core contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.