PHPackages                             execut/yii2-autosize-textarea - 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. execut/yii2-autosize-textarea

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

execut/yii2-autosize-textarea
=============================

Autosize textarea widget for Yii2 based on jquery.ns-autogrow plugin

1.0.2(5y ago)0648↓50%1[1 issues](https://github.com/execut/yii2-autosize-textarea/issues)Apache-2.0PHP

Since Jul 9Pushed 5y agoCompare

[ Source](https://github.com/execut/yii2-autosize-textarea)[ Packagist](https://packagist.org/packages/execut/yii2-autosize-textarea)[ Docs](https://github.com/execut/yii2-widget-bootstraptreeview)[ RSS](/packages/execut-yii2-autosize-textarea/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Autosize textarea widget for Yii2 based on jquery.ns-autogrow plugin
====================================================================

[](#autosize-textarea-widget-for-yii2-based-on-jqueryns-autogrow-plugin)

[Plugin page](https://github.com/ro31337/jquery.ns-autogrow)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

### Install

[](#install)

Either run

```
$ php composer.phar require execut/yii2-autosize-textarea "dev-master"

```

or add

```
"execut/yii2-autosize-textarea": "dev-master"

```

to the `require` section of your `composer.json` file.

Example
-------

[](#example)

```
use execut\autosizeTextarea\TextareaWidget;

class Model extends \yii\base\Model {
    public $text = null;
    public function rules()
    {
        return [['text', 'safe']];
    }
}

$form = \yii\widgets\ActiveForm::begin();
echo $form->field(new \Model(), 'text')->widget(TextareaWidget::class, [
    'options' => [
        'style' => 'height: 30px', // If you want set textarea height
    ],
    'clientOptions' => [
        'vertical' => true, //(true/false) - Enable/Disable vertical autogrow (true by default)
        'horizontal' => true, //(true/false) - Enable/Disable horizontal autogrow (true by default)
        'postGrowCallback' => new JsExpression('function () {console.debug(\'post grow callback\');}'),
        //Post grow callback. Executes after dimensions of textarea have been adjusted.
        'flickering' => true, //(true/false) - Enable/Disable flickering.
        //If flickering is disabled, extra line will be added to textarea.
        //Flickering is enabled by default.
        'debugx' => -10000, // X position of shadow element (-10000 by default)
        'debugy' => -10000, // Y position of shadow element (-10000 by default)
        'debugcolor' => 'yellow', // Color of shadow element (yellow by default)
    ]
]);
\yii\widgets\ActiveForm::end();
```

[![Example autosize textarea widget for Yii2](https://camo.githubusercontent.com/32b42a1db5af4641f23b0ebc1e4a142508e794626b96cc879495463a4e286038/68747470733a2f2f7261772e6769746875622e636f6d2f6578656375742f796969322d6175746f73697a652d74657874617265612f6d61737465722f6578616d706c652f6578616d706c652e706e67)](https://camo.githubusercontent.com/32b42a1db5af4641f23b0ebc1e4a142508e794626b96cc879495463a4e286038/68747470733a2f2f7261772e6769746875622e636f6d2f6578656375742f796969322d6175746f73697a652d74657874617265612f6d61737465722f6578616d706c652f6578616d706c652e706e67)

License
-------

[](#license)

**yii2-autosize-textarea** is released under the Apache License Version 2.0. See the bundled `LICENSE.md` for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~256 days

Total

3

Last Release

1984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ffb982747c04d8d93e2db3f8d90e44864c7c2a21a4c3d00ffbe66325f3f91c4?d=identicon)[execut](/maintainers/execut)

---

Top Contributors

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

---

Tags

pluginjqueryyii2extensionformtextareaautosize

### Embed Badge

![Health badge](/badges/execut-yii2-autosize-textarea/health.svg)

```
[![Health](https://phpackages.com/badges/execut-yii2-autosize-textarea/health.svg)](https://phpackages.com/packages/execut-yii2-autosize-textarea)
```

###  Alternatives

[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M59](/packages/kartik-v-yii2-widget-datepicker)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

814.9M18](/packages/kartik-v-yii2-widget-depdrop)[execut/yii2-widget-bootstraptreeview

Bootstrap Tree View widget wrapper for yii2

46170.2k](/packages/execut-yii2-widget-bootstraptreeview)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

454.8M9](/packages/kartik-v-yii2-widget-typeahead)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)

PHPackages © 2026

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