Download the PHP package ride/lib-html without Composer
On this page you can find all versions of the php package ride/lib-html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ride/lib-html
More information about ride/lib-html
Files in ride/lib-html
Informations about the package lib-html
Ride: HTML Library
HTML helper library of the PHP Ride framework.
What's In This Library
Element
The Element interface is used to implement an HTML element. It offers helper methods to set the attributes and a method to generate the HTML.
Different implementations of this interface are provided.
Anchor
The Anchor class is a representation of an a element as used anywhere in the body of an HTML document.
Image
The Image class is a representation of an img element as used anywhere in the body of an HTML document.
Meta
The Meta class is a representation of a meta element as used in the head of an HTML document.
Pagination
The Pagination class is a helper to generate a pagination block. It takes care of many pages by creating gaps between the first, the active and the last page like in the following example.
Table
The _Table class is a representation of a table element as used anywhere in the body of an HTML document. There are extended implementations available depending on the use case or data source.
Row
The Row class is a representation of a tr element as used in a table of an HTML document.
Cell
The Cell class is a representation of a td element as used in a table row of an HTML document.
HeaderCell
The HeaderCell class is a representation of a th element as used in a table row of an HTML document.
ArrayTable
While the regular Table class expects you to create Row instances and so on, the ArrayTable class works differently. It's starting point in a simple array of data. Each element in the array is a Row. By adding a table Decorator, you create a column and decide the contents of the cell in that row by formatting the data or a part there of.
FormTable
The FormTable class works further on the ArrayTable. It creates a form component from the table and adds possibilities to add pagination, search, order and actions out of the box. You can extend it even further.
ExportTable
The ExportTable interface adds export functionality to the table which implements it. You can add separate decorators for the export. The export gets populated by passing a ExportFormat implementation to it.
The FormTable class implements this interface.
HtmlParser
The HtmlParser class helps you to process a piece of HTML. You can use it to make all images and anchors absolute instead of relative.
Code Sample
Check the following code sample to see some of the functionality of this library:
Related Modules
Installation
You can use Composer to install this library.
All versions of lib-html with dependencies
ride/lib-form Version ^1.0.0
ride/lib-image Version ^1.0.0
ride/lib-reflection Version ^1.0.0