PHP Classes

Yii2 PHP Icon Picker: Widget to let users pick icons Bootstrap images

Recommend this page to a friend!
  Info   View files Documentation   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-12-12 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 30 All time: 10,934 This week: 200Up
Version License PHP version Categories
yii2-iconpicker 1.0.0MIT/X Consortium ...5HTML, PHP 5, Libraries
Description 

Author

This package provides a widget to let users pick icons and Bootstrap images.

It can generate HTML to show control on a form that the users can interact with to choose icon images.

It provides options to let developers control certain aspects of the widget like:

- the icon set that the users can use

- The number of rows and columns, and icons that will appear on a page

- The text and the placement of the widget label

Innovation Award
PHP Programming Innovation award nominee
December 2022
Number 8
Many Web applications let the users configure certain aspects of how the applications appear to their users.

In some cases, the applications let the users pick icons shown in different parts of the application pages.

This package provides a solution that lets application developers add a widget to a form of application options that allows application users to pick icon images for any practical purpose of the application.

Manuel Lemos
Picture of Insolita
  Performance   Level  
Name: Insolita <contact>
Classes: 20 packages by
Country: Russian Federation Russian Federation
Age: 38
All time rank: 336393 in Russian Federation Russian Federation
Week rank: 56 Up8 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 14x

Documentation

Widget for bootstrap-iconpicker 3.0

Latest Stable Version Total Downloads License

Widget for bootstrap-iconpicker plugin http://victor-valencia.github.io/bootstrap-iconpicker/

Now based on more actual fork https://github.com/eliberty/bootstrap-iconpicker

FontAwesome 4.7.0 support

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist insolita/yii2-iconpicker "^3.0"

or add

"insolita/yii2-iconpicker": "^3.0"

to the require section of your composer.json file.

Requirements

This extension require twitter-bootstrap >3.0 You can use it for - glyphicon (with bootstrap by default) - ionicon https://packagist.org/packages/rmrevin/yii2-ionicon - fontawesome https://packagist.org/packages/rmrevin/yii2-fontawesome - weathericon https://github.com/erikflowers/weather-icons - mapicon - octicon https://github.com/github/octicons - typicon https://github.com/stephenhutchings/typicons.font - elusiveicon https://github.com/reduxframework/elusive-icons - materialdesign https://packagist.org/packages/mervick/yii2-material-design-icons

By default - native bootstrap glyphicon

NOTE!

This extension not provide assets for icon source - you can setup and register it`s in view separately You can create needed assets, or direct include css of icon fonts from folder @bower/eliberty-bootstrap-iconpicker/icon-fonts

Usage

Once the extension is installed, simply use it in your code by :

<?= $form->field($model, 'icon')->widget('\insolita\iconpicker\Iconpicker',
 [
   'iconset'=>'fontawesome',
   'clientOptions'=>['rows'=>8,'cols'=>10,'placement'=>'right'],
 ])->label('Choose icon'); ?>

or without ActiveForm

 <?php
    echo \insolita\iconpicker\Iconpicker::widget([
        'id'=>'choose_icon',
        'name'=>'myicon',
        'value'=>'glyphicon-cog',
        'iconset'=>'glyphicon',
        'pickerOptions'=>['class'=>'btn btn-primary'],
        'clientOptions'=>['placement'=>'bottom','search'=>false],
    ]);
 ?>

  Files folder image Files  
File Role Description
Files folder imageassets (10 files)
Files folder imagemessages (2 directories)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Iconpicker.php Class Class source
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files  /  assets  
File Role Description
  Plain text file ElusiveiconIconset.php Class Class source
  Plain text file FontawesomeIconset.php Class Class source
  Plain text file GlyphiconIconset.php Class Class source
  Plain text file IconpickerAsset.php Class Class source
  Plain text file IoniconIconset.php Class Class source
  Plain text file MapiconIconset.php Class Class source
  Plain text file MaterialdesignIconset.php Class Class source
  Plain text file OcticonIconset.php Class Class source
  Plain text file TypiconIconset.php Class Class source
  Plain text file WeathericonIconset.php Class Class source

  Files folder image Files  /  messages  
File Role Description
Files folder imageen (1 file)
Files folder imageru (1 file)

  Files folder image Files  /  messages  /  en  
File Role Description
  Accessible without login Plain text file iconpicker.php Aux. Auxiliary script

  Files folder image Files  /  messages  /  ru  
File Role Description
  Accessible without login Plain text file iconpicker.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:30
This week:0
All time:10,934
This week:200Up