PHPackages                             thatsus/select2 - 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. thatsus/select2

ActiveComponent[Utility &amp; Helpers](/categories/utility)

thatsus/select2
===============

Select2 is a jQuery based replacement for select boxes.

4.0.1(10y ago)030.2kMITJavaScript

Since Mar 23Pushed 10y ago4 watchersCompare

[ Source](https://github.com/thatsus/select2)[ Packagist](https://packagist.org/packages/thatsus/select2)[ Docs](https://select2.github.io/)[ RSS](/packages/thatsus-select2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (18)Used By (0)

Select2
=======

[](#select2)

[![Build Status](https://camo.githubusercontent.com/f82e92b0c4a15536ad903787c72bd01c6494970e191a0e2ac6894650dacaefb9/68747470733a2f2f7472617669732d63692e6f72672f73656c656374322f73656c656374322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/select2/select2)

Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and pagination of results.

To get started, checkout examples and documentation at

Use cases
---------

[](#use-cases)

- Enhancing native selects with search.
- Enhancing native selects with a better multi-select interface.
- Loading data from JavaScript: easily load items via AJAX and have them searchable.
- Nesting optgroups: native selects only support one level of nesting. Select2 does not have this restriction.
- Tagging: ability to add new items on the fly.
- Working with large, remote datasets: ability to partially load a dataset based on the search term.
- Paging of large datasets: easy support for loading more pages when the results are scrolled to the end.
- Templating: support for custom rendering of results and selections.

Browser compatibility
---------------------

[](#browser-compatibility)

- IE 8+
- Chrome 8+
- Firefox 10+
- Safari 3+
- Opera 10.6+

Usage
-----

[](#usage)

You can source Select2 directly from a CDN like [JSDliver](http://www.jsdelivr.com/#!select2) or [CDNJS](http://www.cdnjs.com/libraries/select2), [download it from this GitHub repo](https://github.com/select2/select2/releases), or use one of the integrations below.

Integrations
------------

[](#integrations)

- [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / [Apache Wicket](http://wicket.apache.org))
- [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails)
- [AngularUI](http://angular-ui.github.io/#ui-select) ([AngularJS](https://angularjs.org/))
- [Django](https://github.com/applegrew/django-select2)
- [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin)
- [Symfony2](https://github.com/avocode/FormExtensions)
- [Bootstrap 2](https://github.com/t0m/select2-bootstrap-css) and [Bootstrap 3](https://github.com/t0m/select2-bootstrap-css/tree/bootstrap3)(CSS skins)
- [Meteor](https://github.com/nate-strauser/meteor-select2) ([Bootstrap 3 skin](https://github.com/zimme/meteor-select2-bootstrap3-css/))
- [Meteor](https://jquery-select2.meteor.com)
- [Yii 2.x](http://demos.krajee.com/widgets#select2)
- [Yii 1.x](https://github.com/tonybolzan/yii-select2)
- [AtmosphereJS](https://atmospherejs.com/package/jquery-select2)

Internationalization (i18n)
---------------------------

[](#internationalization-i18n)

Select2 supports multiple languages by simply including the right language JS file (`dist/js/i18n/it.js`, `dist/js/i18n/nl.js`, etc.) after `dist/js/select2.js`.

Missing a language? Just copy `src/js/select2/i18n/en.js`, translate it, and make a pull request back to Select2 here on GitHub.

Documentation
-------------

[](#documentation)

The documentation for Select2 is available [through GitHub Pages](https://select2.github.io/) and is located within this repository in the [`docs` folder](https://github.com/select2/select2/tree/master/docs).

Community
---------

[](#community)

You can find out about the different ways to get in touch with the Select2 community at the [Select2 community page](https://select2.github.io/community.html).

Copyright and license
---------------------

[](#copyright-and-license)

The license is available within the repository in the [LICENSE](LICENSE.md) file.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~53 days

Total

16

Last Release

3821d ago

Major Versions

3.5.2 → 4.0.0-beta.12015-01-08

3.5.4 → 4.0.1-rc.12015-11-10

### Community

Maintainers

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

---

Top Contributors

[![ivaynberg](https://avatars.githubusercontent.com/u/150030?v=4)](https://github.com/ivaynberg "ivaynberg (706 commits)")[![kevin-brown](https://avatars.githubusercontent.com/u/1991850?v=4)](https://github.com/kevin-brown "kevin-brown (601 commits)")[![justindujardin](https://avatars.githubusercontent.com/u/101493?v=4)](https://github.com/justindujardin "justindujardin (14 commits)")[![merkuriy](https://avatars.githubusercontent.com/u/575792?v=4)](https://github.com/merkuriy "merkuriy (14 commits)")[![creage](https://avatars.githubusercontent.com/u/910967?v=4)](https://github.com/creage "creage (11 commits)")[![mkurz](https://avatars.githubusercontent.com/u/644927?v=4)](https://github.com/mkurz "mkurz (8 commits)")[![jdecuyper](https://avatars.githubusercontent.com/u/369777?v=4)](https://github.com/jdecuyper "jdecuyper (7 commits)")[![stretch4x4](https://avatars.githubusercontent.com/u/12271094?v=4)](https://github.com/stretch4x4 "stretch4x4 (7 commits)")[![kows](https://avatars.githubusercontent.com/u/7290402?v=4)](https://github.com/kows "kows (6 commits)")[![chroder](https://avatars.githubusercontent.com/u/145357?v=4)](https://github.com/chroder "chroder (4 commits)")[![boyaq](https://avatars.githubusercontent.com/u/641537?v=4)](https://github.com/boyaq "boyaq (4 commits)")[![realityking](https://avatars.githubusercontent.com/u/628508?v=4)](https://github.com/realityking "realityking (4 commits)")[![gsmet](https://avatars.githubusercontent.com/u/1279749?v=4)](https://github.com/gsmet "gsmet (4 commits)")[![od3n](https://avatars.githubusercontent.com/u/156899?v=4)](https://github.com/od3n "od3n (4 commits)")[![vitalets](https://avatars.githubusercontent.com/u/1473072?v=4)](https://github.com/vitalets "vitalets (4 commits)")[![wyuenho](https://avatars.githubusercontent.com/u/160028?v=4)](https://github.com/wyuenho "wyuenho (4 commits)")[![mander77](https://avatars.githubusercontent.com/u/220622142?v=4)](https://github.com/mander77 "mander77 (4 commits)")[![ycdtosa](https://avatars.githubusercontent.com/u/672665?v=4)](https://github.com/ycdtosa "ycdtosa (3 commits)")[![burnb](https://avatars.githubusercontent.com/u/5370603?v=4)](https://github.com/burnb "burnb (3 commits)")[![execjosh](https://avatars.githubusercontent.com/u/189989?v=4)](https://github.com/execjosh "execjosh (3 commits)")

### Embed Badge

![Health badge](/badges/thatsus-select2/health.svg)

```
[![Health](https://phpackages.com/badges/thatsus-select2/health.svg)](https://phpackages.com/packages/thatsus-select2)
```

###  Alternatives

[fullcalendar/fullcalendar

Full-sized drag &amp; drop event calendar

20.4k373.3k4](/packages/fullcalendar-fullcalendar)[eternicode/bootstrap-datepicker

A datepicker for Bootstrap

12.7k543.8k6](/packages/eternicode-bootstrap-datepicker)[eonasdan/bootstrap-datetimepicker

Date/time picker widget based on twitter bootstrap

7.2k492.4k9](/packages/eonasdan-bootstrap-datetimepicker)[trentrichardson/jquery-timepicker-addon

Adds a timepicker to jQueryUI Datepicker.

2.6k70.2k](/packages/trentrichardson-jquery-timepicker-addon)[grimmlink/bootstrap-filestyle

jQuery customization of input html file for Bootstrap Twitter http://markusslima.github.io/bootstrap-filestyle/

71510.6k](/packages/grimmlink-bootstrap-filestyle)[tempusdominus/bootstrap-4

A date/time picker component designed to work with Bootstrap 4 and Momentjs.

6079.3k](/packages/tempusdominus-bootstrap-4)

PHPackages © 2026

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