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

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

larvata/select2
===============

Select2 is a jQuery based replacement for select boxes.

4.0.6(9y ago)0119MITJavaScript

Since Mar 23Pushed 9y ago8 watchersCompare

[ Source](https://github.com/LarvataTW/select2)[ Packagist](https://packagist.org/packages/larvata/select2)[ Docs](https://select2.github.io/)[ RSS](/packages/larvata-select2/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (23)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

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 52.8% 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 ~50 days

Recently: every ~88 days

Total

20

Last Release

3529d 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/f3960c3b69f1782dc486cf24696306ff98a8ff3629a7d47ccb139532487bead4?d=identicon)[larvata](/maintainers/larvata)

---

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 (493 commits)")[![merkuriy](https://avatars.githubusercontent.com/u/575792?v=4)](https://github.com/merkuriy "merkuriy (14 commits)")[![justindujardin](https://avatars.githubusercontent.com/u/101493?v=4)](https://github.com/justindujardin "justindujardin (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)")[![crazylion](https://avatars.githubusercontent.com/u/12908?v=4)](https://github.com/crazylion "crazylion (7 commits)")[![jdecuyper](https://avatars.githubusercontent.com/u/369777?v=4)](https://github.com/jdecuyper "jdecuyper (7 commits)")[![kows](https://avatars.githubusercontent.com/u/7290402?v=4)](https://github.com/kows "kows (6 commits)")[![boyaq](https://avatars.githubusercontent.com/u/641537?v=4)](https://github.com/boyaq "boyaq (4 commits)")[![vitalets](https://avatars.githubusercontent.com/u/1473072?v=4)](https://github.com/vitalets "vitalets (4 commits)")[![chroder](https://avatars.githubusercontent.com/u/145357?v=4)](https://github.com/chroder "chroder (4 commits)")[![wyuenho](https://avatars.githubusercontent.com/u/160028?v=4)](https://github.com/wyuenho "wyuenho (4 commits)")[![realityking](https://avatars.githubusercontent.com/u/628508?v=4)](https://github.com/realityking "realityking (4 commits)")[![mander77](https://avatars.githubusercontent.com/u/220622142?v=4)](https://github.com/mander77 "mander77 (4 commits)")[![gsmet](https://avatars.githubusercontent.com/u/1279749?v=4)](https://github.com/gsmet "gsmet (4 commits)")[![ycdtosa](https://avatars.githubusercontent.com/u/672665?v=4)](https://github.com/ycdtosa "ycdtosa (3 commits)")[![Brankub](https://avatars.githubusercontent.com/u/1280465?v=4)](https://github.com/Brankub "Brankub (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/larvata-select2/health.svg)

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

###  Alternatives

[sbine/simple-tenancy

Simple Laravel multi-tenancy in the same database

373.6k](/packages/sbine-simple-tenancy)[tsmgeek/exif-tool_php_stayopen

PHP ultra-fast library to allow accessing the ExifTool

313.7k](/packages/tsmgeek-exif-tool-php-stayopen)

PHPackages © 2026

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