Download the PHP package hgh/yii-advance-input without Composer

On this page you can find all versions of the php package hgh/yii-advance-input. 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 yii-advance-input

Yii advance input

Using this library, You can add widgets which have, on/off button, label, description, icon and unit.

help

MIT Version Code size

Usage

Widgets

There are 4 widget. There are common and specific options that widgets can use them that we will see them in future.

Text

This widget will provide a HTML input tag with type of text.

usage

Checkbox

This widget will provide a HTML input tag with type of checkbox.

Dropdown

This widget will provide a HTML select tag.
This widget needs another required option which is called items. The items array is a map for select datalist. In another word, key of array elements will be value of option tag and value of array elements will be option tag value. See bellow:

will produce:

Textarea

This widget will provide a HTML textarea tag.

General options list

Main common options that all widgets can use is listed below.

Dropdown options

Options

name

The main name of input which will place into name attribute of input.

PHP
Preview

Just input


icon

optional
The icon class which will appear in a box right before input. This is a class attribute which will add to a i element.

PHP
Preview

Input with icon


unit

Every input will accept specific values. Using this option, a unit box will append to input.

PHP
Preview

with unit


checkbox

Using this option, you provide an option which allows users to not filling input. If checkbox is not checked, an disabled attribute will add to input.

Notice
unit options will not work on this type of widget.

PHP
Preview

with checkbox


label

A label for input.

PHP
Preview

with label


description

If you want to describe what the field is for, you can use this option. Using this option, an div will add after label.

PHP
Preview

with description


wrapperOptions

A map of attributes and their values for wrapper.

PHP
Preview

with wrapperOptions


inputOptions

A map of attributes and their values for input.

PHP
Preview

with inputOptions


checkboxOptions

A map of attributes and their values for checkbox input.

Notice
Checkbox use bootstrap toggle. All options of Bootstrap Toggle is supported. Visit Bootstrap Toggle.

PHP
Preview

with checkboxOptions


model and form

These widgets can also receive Yii2 models. By passing your model into this option, elements will generate using form option that you provided. form option must be an instance of ActiveForm of Yii2. For more information visit: ActiveForm

Notice By using model option, label will generate automatically. It use attributeLabel of property of model. If there is no label, label box will not generate. Also to prevent of label generation even if attributeLabel in model exists, set label option to false.

PHP
Preview

With model


rtl

This widgets, also support rtl pages. To use these as a rtl widget, just set rtl option true;

PHP
Preview

With model


items

The items array is a map for select datalist. In another word, key of array elements will be value of option tag and value of array elements will be option tag value

Notice
Checkbox use bootstrap toggle. All options of Bootstrap Toggle is supported. Visit Bootstrap Toggle.

PHP
Preview

Right to left


All versions of yii-advance-input with dependencies

PHP Build Version
Package Version
Requires components/jquery Version *
yiisoft/yii2 Version ~2.0.0
hgh/yii-bootstrap-toggle Version *
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 hgh/yii-advance-input contains the following files

Loading the files please wait ....