PHPackages                             flsouto/htselect - 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. flsouto/htselect

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

flsouto/htselect
================

Generates the classic HTML Select field for choosing an option.

1.0.0(9y ago)0561PHP

Since Feb 28Pushed 9y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

HtSelect
========

[](#htselect)

This library can be used to generate `` fields in an easy way. I recommend you take a look at the documentation of its parent classes in order to grasp all the functionality inherited by this particular one:

- [HtChoice](https://github.com/flsouto/htchoice)
- [HtWidget](https://github.com/flsouto/htwidget)
- [HtField](https://github.com/flsouto/htfield)

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

[](#installation)

Via composer:

```
composer require flsouto/htselect

```

Usage
-----

[](#usage)

In the following example we generate a select field with three options.

```
