Download the PHP package thatsus/radiosforbuttons without Composer

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

radiosforbuttons

jQuery plugin for transforming radio-buttons in true beautiful Bootstrap buttons.

Demo

Page

Requirements

The requirements are

Just include them all.

Usage

To use you must have a set of radio-buttons (defined by <input type="radio">) with name, value, unique ids and a label (defined by <label for="id"></label>) for each one. All these elements must be inside a div (or some other block element), which will be, by its time, called on the plugin invocation. The div can be anywhere inside a form. The html of the button will be the content of the label for each button. The radio-buttons will be preserved at the DOM, hidden, and their checked properties altered on each click at the resulting buttons. It is their value which will be sent to the server on any form submit. Simple example:

Group

Change the group option from the default true to false if you don't want the buttons to be in bootstrap button group (as in the .btn-group class).

Vertical

If you want stacked options, just mark option vertical as true:

The widths of the vertically stacked buttons will be equalized unless you set autowidth to false.

Colors

As you know, bootstrap buttons have colors. You can color the radio buttons in two ways:

Calling radiosforbuttons with the color or buttonstyle options setted

Just set the option you want to use with the value of the color you will want for all the buttons. Both the bootstrap button classes names or simply a color name:

Using data properties on the input element

You can assign color to buttons using the data properties button-color or button-bootstrap-class, the values are the same for the example above:

Margin

Because of a difference of 2px (I think) on the button margins on Chrome and Firefox which bootstrap apparently doesn't cover, I added this property so you could make the buttons of the group nearer or farther. However, due to other improvement isn't necessary to change it, unless you want to make your buttons farther, then it's a cool thing. Just do:

It also works for vertically stacked buttons.

Reference

option type default
group boolean true
color string white
buttonstyle string ''
vertical boolean false
autowidth boolean true
margin integer 0

All versions of radiosforbuttons with dependencies

PHP Build Version
Package Version
No informations.
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 thatsus/radiosforbuttons contains the following files

Loading the files please wait ...