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.

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 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

PHP Build Version
Package Version
Requires ride/lib-common Version ^1.0.0
ride/lib-form Version ^1.0.0
ride/lib-image Version ^1.0.0
ride/lib-reflection Version ^1.0.0
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 ride/lib-html contains the following files

Loading the files please wait ....