Download the PHP package jp-toolkit/html-helper without Composer

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

JP Toolkit HTML Helper

A helper classes based on Laravel Forms, CodeIgniter HTML helper and Yii Framework BaseHtml helper that provides a set of static methods for generating commonly used HTML tags to use in WordPress themes and/or plugins.

Note: If your markup is nearly static, it's better to use HTML directly. There's no need to wrap absolutely everything in Html helper class.


Examples

Html class

The code for generating a tag looks like the following:

The first argument is the tag name. The second one is the content to be enclosed between the start and end tags. The third one is an array of HTML attributes. In this array the key is the name of the attribute (such as class, href or target), and the value is its value. You can also use a query string to set the tag attributes.

The code above will generate the following HTML:

Form class

The code for generating a tag looks like the following:

The $attributes is an array of HTML attributes. In this array the key is the name of the attribute (such as class, value or id), and the value is its value. You can also use a query string to set the tag attributes.

The code above will generate the following HTML:

Please read our Wiki for more detailed information, advanced usage and shorthands.


Installing

Manual

Recommended in most cases.

  1. Download the jp-toolkit-html-helper.zip file from GitHub
  2. In your WordPress admin click Plugin > Add New > Upload Plugin.
  3. Upload the ZIP file.
  4. Activate the plugin.

Via Composer

This plugin is also available as Composer package and can be installed via Composer from the root of your theme or plugin. Recommended when you want to bundle in your theme or plugin.

Note:

When is installed via Composer it is necessary to initialize the shortcodes and shorthands handlers, this code can be placed in your functions.php of your theme or the root file of your plugin.

This code is only required when is installed via Composer, if you do not want use these handlers you can skip this step.


Bug tracker?

Have a bug? Please create an issue on GitHub at https://github.com/jprieton/jp-toolkit-html-helper/issues


All versions of html-helper with dependencies

PHP Build Version
Package Version
Requires wptrt/admin-notices Version 1.0.*
php Version >=7
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 jp-toolkit/html-helper contains the following files

Loading the files please wait ....