PHPackages                             grptx/yii2-smooth-scroll - 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. grptx/yii2-smooth-scroll

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

grptx/yii2-smooth-scroll
========================

Smooth Scroll widget for Yii2

v2.0.0(6y ago)0225MITPHP

Since Dec 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/grptx/yii2-smooth-scroll)[ Packagist](https://packagist.org/packages/grptx/yii2-smooth-scroll)[ RSS](/packages/grptx-yii2-smooth-scroll/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

yii2-smooth-scroll
==================

[](#yii2-smooth-scroll)

[![Latest Stable Version](https://camo.githubusercontent.com/2eb7c44f5850ec138337d1739440f31bcfe5cc726d95e5db41f5369698ff4c2f/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d736d6f6f74682d7363726f6c6c2f762f737461626c65)](https://packagist.org/packages/grptx/yii2-smooth-scroll)[![Total Downloads](https://camo.githubusercontent.com/686500a0ad15c5eb3856ae913b8a51bc0d0d4f860f51408813f1ead70c63dc01/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d736d6f6f74682d7363726f6c6c2f646f776e6c6f616473)](https://packagist.org/packages/grptx/yii2-smooth-scroll)[![Latest Unstable Version](https://camo.githubusercontent.com/19cec08df7bc039fd5c7fb4b13f47a4428a5401a35c95a619fccb85f8dd05db2/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d736d6f6f74682d7363726f6c6c2f762f756e737461626c65)](https://packagist.org/packages/grptx/yii2-smooth-scroll)[![License](https://camo.githubusercontent.com/89c9cbbc74ebeba9b2e8d701c5abeefa12847db459947065c63e05eae9b3430c/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d736d6f6f74682d7363726f6c6c2f6c6963656e7365)](https://packagist.org/packages/grptx/yii2-smooth-scroll)[![composer.lock](https://camo.githubusercontent.com/3793f3abed053b2c69b981ca03f4d5e0856121b3fe7d060542ff4fa4ca0b12d6/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d736d6f6f74682d7363726f6c6c2f636f6d706f7365726c6f636b)](https://packagist.org/packages/grptx/yii2-smooth-scroll)

Smooth Scroll component for Yii2 based on [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll) library

Install
-------

[](#install)

Preferred way to install is through [Composer](https://getcomposer.org):

```
php composer.phar require grptx/yii2-smooth-scroll:^1
```

Or, you may add

```
"grptx/yii2-smooth-scroll": "^1"
```

to the require section of your `composer.json` file and execute `php composer.phar update`.

Usage
-----

[](#usage)

To add the smooth scroll capability to a page add in the view:

```
use grptx\smoothscroll\SmoothScrollWidget;

SmoothScrollWidget::widget();
```

Options
-------

[](#options)

Availables options for the widget are:

- selector (default *a\[href\*="#"\]*)
- name (the javascript var name of scroll, default *scroll*)
- options (array of options defined by the library cfr: )

Example
-------

[](#example)

```
SmoothScrollWidget::widget([
    'selector' => 'a[href*="#"]',
    'name' => 'myScroll',
    'options' => [
        'header' => ...
        'speed' => ...
        // etc ..
    ],
]);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Recently: every ~140 days

Total

6

Last Release

2515d ago

Major Versions

v0.0.2 → v1.0.02017-12-10

v1.1.0 → v2.0.02019-06-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0ba72929c09500c5f5a0394da48fec616a8cf97bffe3c29a9f9e21dc6a93e6e?d=identicon)[grptx](/maintainers/grptx)

---

Top Contributors

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

---

Tags

yii2yii2 widgetSmooth Scroll

### Embed Badge

![Health badge](/badges/grptx-yii2-smooth-scroll/health.svg)

```
[![Health](https://phpackages.com/badges/grptx-yii2-smooth-scroll/health.svg)](https://phpackages.com/packages/grptx-yii2-smooth-scroll)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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