PHPackages                             lucasvolpati/months - 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. lucasvolpati/months

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

lucasvolpati/months
===================

Component to work with months

1.0.0(2y ago)05MITPHP

Since Aug 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lucasvolpati/months)[ Packagist](https://packagist.org/packages/lucasvolpati/months)[ RSS](/packages/lucasvolpati-months/feed)WikiDiscussions main Synced 1mo ago

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

Get Months Component
====================

[](#get-months-component)

[![Maintainer](https://camo.githubusercontent.com/e14f63002b392270a7675aec78e8107e9d89497bda2664cadbd27b6579ebfeaf/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406c75636173766f6c706174692d626c75652e7376673f7374796c653d666c61742d737175617265)](https://www.linkedin.com/in/lucas-volpati/)[![Source Code](https://camo.githubusercontent.com/6724a8dbb2fd826eb86ea28657385af4d4a60ac550944f7a158cb157f4e380ad/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6c75636173766f6c706174692f6d6f6e7468732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/lucasvolpati/months)[![PHP from Packagist](https://camo.githubusercontent.com/c501b6a92a2024a08f29a14673628580dbe5782a1740304f075fb1b4d709cb23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c75636173766f6c706174692f6d6f6e7468732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lucasvolpati/months)[![Latest Version](https://camo.githubusercontent.com/2557c283ced034769190124c7b4acb03b1bfd1a40a20351e5b635bf4cc0844c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c75636173766f6c706174692f6d6f6e7468732e7376673f7374796c653d666c61742d737175617265)](https://github.com/lucasvolpati/months/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/e7ccd890992f9929fa6e027a68bfa9eabc48e4f71cde439d9b51c57bc29bd05c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c75636173766f6c706174692f6d6f6e7468732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lucasvolpati/months)[![Total Downloads](https://camo.githubusercontent.com/f03e1f79ea6a3f14955dc7e1281f605082d51e5967cdb58419809dec578062b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c75636173766f6c706174692f6d6f6e7468732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lucasvolpati/months)

Small, simple and uncomplicated. This is a HTML generator, where you can generate a SELECT elements months lists, with some little lines in your project.

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

[](#installation)

```
"lucasvolpati/months": "1.0.*"

```

or run

```
composer require lucasvolpati/months

```

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

[](#documentation)

```

output:

    Janeiro
    Fevereiro
    ...

```

### Construct params

[](#construct-params)

#### First parameter is language - 'pt\_br' is default

[](#first-parameter-is-language---pt_br-is-default)

You can change the months language to english, bypassing 'en\_us'

```

```

#### Second parameter is month string format - 'full' is default

[](#second-parameter-is-month-string-format---full-is-default)

You can change to 'small' to get brev months names, example:

```

output:

    Jan
    Fev
    ...

```

#### Third parameter is value format - 'number' is default

[](#third-parameter-is-value-format---number-is-default)

You can change to 'string', example:

```

output:

    Jan
    Fev
    ...

```

### Others parameters

[](#others-parameters)

You can use more two attributes on principal function, *currentSelected* and *dataAtributes*, example:

```
