webtoolsnz / yii2-widgets
A Yii2 widgets library by Webtools
Package info
github.com/webtoolsnz/yii2-widgets
Language:JavaScript
Type:yii2-extension
pkg:composer/webtoolsnz/yii2-widgets
0.4.1
2024-08-21 01:00 UTC
Requires
- php: >=7.2.0
- bower-asset/bootbox.js: 4.4.0
- bower-asset/font-awesome: ^4.3
- bower-asset/signature_pad: 1.5.3
- symfony/intl: ^4.3
- yiisoft/yii2: ^2.0.13
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-jui: *
Requires (Dev)
- phpunit/phpunit: ^8.3.5
- spatie/phpunit-snapshot-assertions: ^2.1
This package is auto-updated.
Last update: 2026-06-21 05:14:32 UTC
README
A collection of reusable widgets for Yii2.
Installation
The preferred way to install this extension is through composer.
$ composer require webtoolsnz/yii2-widgets
Widgets Available
- \webtoolsnz\widgets\Wysihtml5
- A simple HTML5 WYSIWYG editor.
- \webtoolsnz\widgets\RadioButtonGroup
- A Slick alternative to radio buttons
- \webtoolsnz\widgets\CurrencyInput
- Input fields that supports localized currency codes.
- \webtoolsnz\widgets\DatePicker
- A Html5 Date Input shim, falls back to JUI DatePicker when no native widget available.
- \webtoolsnz\widgets\DateRangePicker
- A DateRangePicker.
- \webtoolsnz\widgets\Tabs
- Extends the yii bootstrap tabs, allows linking to tabs.
- \webtoolsnz\widgets\GooglePlaceSearch
- Easy to use input that implements google places search, also supports rendering a map.
- \webtoolsnz\widgets\SelectOther
- Simple select an option from predefined array or enter in something else.
Asset Bundles
There are also some useful asset bundles available.
- \webtoolsnz\widgets\FontAwesomeAsset
- \webtoolsnz\widgets\ModernizrAsset
- \webtoolsnz\widgets\GooglePlaceSearchAsset
Testing
webtoolsnz/yii2-widgets has a PHPUnit test suite. To run the tests, run the following command from the project folder.
$ composer test
License
The MIT License (MIT). Please see LICENSE for more information.