PHPackages                             plesk/yii2-standalone-search-form - 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. [Search &amp; Filtering](/categories/search)
4. /
5. plesk/yii2-standalone-search-form

ActiveYii2-extension[Search &amp; Filtering](/categories/search)

plesk/yii2-standalone-search-form
=================================

Plesk extension for Yii2 framework to make standalone search forms.

2.2.0(6y ago)1871Apache-2.0PHPPHP &gt;=5.4

Since Dec 12Pushed 6y ago22 watchersCompare

[ Source](https://github.com/plesk/yii2-standalone-search-form)[ Packagist](https://packagist.org/packages/plesk/yii2-standalone-search-form)[ Docs](https://github.com/plesk/yii2-standalone-search-form)[ RSS](/packages/plesk-yii2-standalone-search-form/feed)WikiDiscussions master Synced 2d ago

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

Plesk extension for Yii2 framework to make standalone search forms
==================================================================

[](#plesk-extension-for-yii2-framework-to-make-standalone-search-forms)

This extension provides an ability to create a form that will be submitted and validated via PJAX. After submitting the form, the page fragment set in the form settings will be updated via PJAX. Such approach provides an ability to create ajax forms with validation without the need to implement Yii2 forms AJAX validation and Yii2 client validation. The form is adaptive.
This extension uses yiisoft/yii2-bootstrap4 extension.

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

[](#installation)

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

`composer require "plesk/yii2-standalone-search-form:^2.0.0"`

Configuration
-------------

[](#configuration)

```
[
    'components' => [
        'pjax' => [
            'class' => 'plesk\yii2pjax\Component',
        ],
    ],
]
```

API
---

[](#api)

Examples:

```
use plesk\standalonesearchform\SearchForm;

echo SearchForm::widget([
    'model' => $searchModel,
    'fields' => [
        [
            'type' => 'widget',
            'attribute' => 'project_id',
            'width' => 'full-wide',
            'options' => [
                Chosen::className(),
                [
                    'items' => ArrayHelper::map($projects, 'id', 'name'),
                ]
            ]
        ],
        [
            'type' => 'checkbox',
            'attribute' => 'showCasesCount',
            'width' => 'full-wide',
            'options' => [[], false]
        ],
    ],
    'resultAreaPjaxOptions' => ['id' => 'result-area-pjax-grid', 'timeout' => 1000],
]);
```

```
use plesk\standalonesearchform\SearchForm;

echo SearchForm::widget([
    'model' => $searchModel,
    'collapse' => true,
    'fields' => [
        [
            'type' => 'widget',
            'attribute' => 'project_id',
            'width' => 'full-wide',
            'options' => [
                Chosen::className(),
                [
                    'items' => ArrayHelper::map($projects, 'id', 'name'),
                ]
            ]
        ],
        [
            'type' => 'widget',
            'attribute' => 'dateCreated',
            'width' => 'long',
            'range' => true,
            'options' => [
                DateTimePicker::className(),
            ]
        ],
    ],
    'resultAreaPjaxOptions' => ['id' => 'plesk-pjax-search-result', 'timeout' => 30000],
    'buttons' => [
        [
            'type' => 'submitButton',
            'options' => [
                'Search it!',
                ['class' => 'btn btn-primary'],
            ]
        ],
        [
            'type' => 'widget',
            'options' => [
                \app\components\widgets\clearButton\Widget::class,
                [
                    'content' => 'Clear it!',
                    'buttonOptions' => ['class' => 'btn btn-danger'],
                ],
            ]
        ]
    ],
]);
```

See [SearchForm](SearchForm.php) class for details

To handle pjax errors you should setup your handler before calling this widget.

```

    registerJs(
            '$(document).on(\'pjax:error\', function(event, xhr, textStatus, error, options) {
                pleskMessageBox.options.title = error;
                pleskMessageBox.alert(xhr.responseText);
            });'
        );
    ?>

```

Exceptions

```
- plesk\standalonesearchform\exceptions\Exception

    All exceptions thrown by the extension, extend this exception.

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

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 ~96 days

Recently: every ~1 days

Total

10

Last Release

2204d ago

Major Versions

1.6.0 → 2.0.02020-04-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/187856?v=4)[Alexey Yuzhakov](/maintainers/sibprogrammer)[@sibprogrammer](https://github.com/sibprogrammer)

![](https://www.gravatar.com/avatar/1916e8e87254ef106fbaefa67de07d17fb78d0295fdf458b9256543da249b815?d=identicon)[dshiryaev-plesk](/maintainers/dshiryaev-plesk)

---

Top Contributors

[![dshiryaev-plesk](https://avatars.githubusercontent.com/u/19424413?v=4)](https://github.com/dshiryaev-plesk "dshiryaev-plesk (16 commits)")

---

Tags

searchfilteryii2extensionwidgetformplesk

### Embed Badge

![Health badge](/badges/plesk-yii2-standalone-search-form/health.svg)

```
[![Health](https://phpackages.com/badges/plesk-yii2-standalone-search-form/health.svg)](https://phpackages.com/packages/plesk-yii2-standalone-search-form)
```

###  Alternatives

[thrieu/yii2-grid-view-state

Save filters from GridView to session, keep the filter state between pages.

1313.1k1](/packages/thrieu-yii2-grid-view-state)[thiagotalma/yii2-jstree

Widget for Yii Framework 2.0 to use JsTree

3261.5k2](/packages/thiagotalma-yii2-jstree)[keygenqt/yii2-autocomplete-ajax

A simple way to search model id of the attributes model

1015.8k](/packages/keygenqt-yii2-autocomplete-ajax)

PHPackages © 2026

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