PHPackages                             et-soft/yii2-widget-select-year - 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. et-soft/yii2-widget-select-year

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

et-soft/yii2-widget-select-year
===============================

Widget for Yii2, created selectbox field with years

1.0.0(10y ago)214.8k↓16.7%BSD 3-ClausePHP

Since Aug 2Pushed 10y ago3 watchersCompare

[ Source](https://github.com/et-soft/yii2-widget-select-year)[ Packagist](https://packagist.org/packages/et-soft/yii2-widget-select-year)[ Docs](https://github.com/et-soft/yii2-widget-select-year)[ RSS](/packages/et-soft-yii2-widget-select-year/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

yii2-widget-select-year
=======================

[](#yii2-widget-select-year)

[![Latest Stable Version](https://camo.githubusercontent.com/c4fcbf8544b6a311b1bc3fde3dc994b5e357f213ac7f48a3085ae821e7c973b5/68747470733a2f2f706f7365722e707567782e6f72672f65742d736f66742f796969322d7769646765742d73656c6563742d796561722f762f737461626c65)](https://packagist.org/packages/et-soft/yii2-widget-select-year)[![License](https://camo.githubusercontent.com/bf3853062b036427af4e600a0ae7d1126ecf8e74228745ebf3d1116072372524/68747470733a2f2f706f7365722e707567782e6f72672f65742d736f66742f796969322d7769646765742d73656c6563742d796561722f6c6963656e7365)](https://packagist.org/packages/et-soft/yii2-widget-select-year)[![Total Downloads](https://camo.githubusercontent.com/6e17792f2caf7a269a860217c27d1d64a8714700c1318023523f2794d5f2a16d/68747470733a2f2f706f7365722e707567782e6f72672f65742d736f66742f796969322d7769646765742d73656c6563742d796561722f646f776e6c6f616473)](https://packagist.org/packages/et-soft/yii2-widget-select-year)[![Monthly Downloads](https://camo.githubusercontent.com/1b64fc198875a590ae7ad502f37f85809154482a37d16f7fd0147994aa10cdb3/68747470733a2f2f706f7365722e707567782e6f72672f65742d736f66742f796969322d7769646765742d73656c6563742d796561722f642f6d6f6e74686c79)](https://packagist.org/packages/et-soft/yii2-widget-select-year)[![Daily Downloads](https://camo.githubusercontent.com/cc16f925f26ce1e905f18b4b45e2e8fa359ad23b1ae6a470554c233814552704/68747470733a2f2f706f7365722e707567782e6f72672f65742d736f66742f796969322d7769646765742d73656c6563742d796561722f642f6461696c79)](https://packagist.org/packages/et-soft/yii2-widget-select-year)

Widget for Yii2, created selectbox field with years.

### Install

[](#install)

Either run

```
$ php composer.phar require et-soft/yii2-widget-select-year "*"

```

or add

```
"et-soft/yii2-widget-select-year": "*"

```

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

### Examples

[](#examples)

Show selectbox with values from 2015 (current year) to 1995 year (-20 years from current year):

```
