PHPackages                             ahmadasjad/yii2-widgets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ahmadasjad/yii2-widgets

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

ahmadasjad/yii2-widgets
=======================

An extension for input with facility to increase and decrease the value with the button

1200PHP

Since Apr 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ahmadasjad/yii2-widgets)[ Packagist](https://packagist.org/packages/ahmadasjad/yii2-widgets)[ RSS](/packages/ahmadasjad-yii2-widgets/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-widgets
============

[](#yii2-widgets)

[![Plus-Minus-Input](img/preview-plus-minus-input.png)](img/preview-plus-minus-input.png)

###### Installation

[](#installation)

```
composer require ahmadasjad/yii2-widgets

```

##### Usage Example

[](#usage-example)

```

```

**Options to customize the plugin in `plugin_options` param:**

```
[
    'val_min' => 0,
    'val_max' => 1000,
    'step' => 1,
    'parser' => 'parseInt',
    'container' => ['class' => 'input-group', 'id' => 'your-custom-id-container'],
    'plus' => ['id' => 'your-custom-id-plus', 'class' => 'btn btn-success', 'label' => '+',],
    'minus' => ['id' => 'your-custom-id-minus', 'class' => 'btn btn-danger', 'label' => '-',],
]
```

`val_min` Minimum value allowed for input

`val_max` Maximum value allowed for input

`step` How much value to be increased/decreased on press of plus/minus button

`parser` Javascript function to parse the input data. For example `parseInt`, `parseFloat`, etc.

`plus` configuration for plus button `minus` configuration for plus button

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7436311?v=4)[AHMAD ASJAD](/maintainers/ahmadasjad)[@ahmadasjad](https://github.com/ahmadasjad)

---

Top Contributors

[![ahmadasjad](https://avatars.githubusercontent.com/u/7436311?v=4)](https://github.com/ahmadasjad "ahmadasjad (10 commits)")

---

Tags

plus-minus-inputyii2yii2-widget

### Embed Badge

![Health badge](/badges/ahmadasjad-yii2-widgets/health.svg)

```
[![Health](https://phpackages.com/badges/ahmadasjad-yii2-widgets/health.svg)](https://phpackages.com/packages/ahmadasjad-yii2-widgets)
```

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k15.3M98](/packages/torann-geoip)[symfony/clock

Decouples applications from the system clock

436205.7M390](/packages/symfony-clock)[eluceo/ical

The eluceo/iCal package offers an abstraction layer for creating iCalendars. You can easily create iCal files by using PHP objects instead of typing your \*.ics file by hand. The output will follow RFC 5545 as best as possible.

1.2k18.7M61](/packages/eluceo-ical)[magento/magento-composer-installer

Composer installer for Magento modules

7524.2M350](/packages/magento-magento-composer-installer)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[geo-io/interface

Geo I/O base interfaces.

626.4M7](/packages/geo-io-interface)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
