PHPackages                             estey/formbuilder - 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. estey/formbuilder

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

estey/formbuilder
=================

Laravel 4 extended FormBuilder Class.

v4.2.12(11y ago)529MITPHPPHP &gt;=5.4.0

Since Oct 18Pushed 11y ago2 watchersCompare

[ Source](https://github.com/BradEstey/laravel4-formbuilder-extended)[ Packagist](https://packagist.org/packages/estey/formbuilder)[ Docs](http://www.bradestey.com/projects/laravel-formbuilder)[ RSS](/packages/estey-formbuilder/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (9)Versions (17)Used By (0)

Laravel 4 FormBuilder Extended
==============================

[](#laravel-4-formbuilder-extended)

[![Latest Stable Version](https://camo.githubusercontent.com/46674a7870a626bfb3d841e3d3e7a1e653653419dc277b0726b808c20f16573e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65737465792f666f726d6275696c6465722e737667)](https://packagist.org/packages/estey/formbuilder) [![Build Status](https://camo.githubusercontent.com/85f845c1503e3b50c5c7b3e5e6fec53b941e7467ddba10f7773bbbbc97040b8f/68747470733a2f2f7472617669732d63692e6f72672f4272616445737465792f6c61726176656c342d666f726d6275696c6465722d657874656e6465642e7376673f6272616e63683d342e32)](https://travis-ci.org/BradEstey/laravel4-formbuilder-extended) [![Coverage Status](https://camo.githubusercontent.com/6e19c977e7c97b33f80c8e5d6cfc613b3c09750ac4682a17c307814c6078e52b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4272616445737465792f6c61726176656c342d666f726d6275696c6465722d657874656e6465642e737667)](https://coveralls.io/r/BradEstey/laravel4-formbuilder-extended?branch=master)

This class extends Laravel 4's FormBuilder class adding a `selectWeekday` method, translations to `selectWeekday` and `selectMonth`, and adds the ability to prepend an array of options to select fields.

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

[](#installation)

Install this package through Composer by editing your project's `composer.json` file to require `estey/formbuilder`.

```
{
    "require": {
        "estey/formbuilder": "4.2.*"
    }
}
```

Then, update Composer:

```
composer update
```

Open `app/config/app.php`, and replace `'Illuminate\Html\HtmlServiceProvider'` with:

```
'Estey\FormBuilder\HtmlServiceProvider'

```

Usage
-----

[](#usage)

- [selectWeekday](#selectweekday)
- [Translations](#translations)
- [Prepend Options](#prepend-options)

selectWeekday
-------------

[](#selectweekday)

The `selectWeekday` method allows you to quickly generate a select field with a list of weekdays.

```
selectWeekday('weekday');
```

Will return:

```

    Sunday
    Monday
    Tuesday
    Wednesday
    Thursday
    Friday
    Saturday

```

Translations
------------

[](#translations)

The `selectWeekday` and `selectMonth` methods in this extension will respect the locale settings. For example, to use Spanish, create an `app/lang/es` directory and copy over the example datetime file from this package `/src/lang/es/datetime.php` to `app/lang/es/datetime.php`. After setting the locale to 'es' in `app/config/app.php`, `selectWeekday()` should return:

```

    domingo
    lunes
    martes
    miércoles
    jueves
    viernes
    sábado

```

Prepend Options
---------------

[](#prepend-options)

To prepend options to a `selectWeekday` and `selectMonth` method, add a `_prepend` array to the options array.

```
selectMonth('month', '', [
    'id' => 'foo',
    '_prepend' => ['' => '-- Choose a Month --']
]);
```

Will return:

```

    -- Choose a Month --
    January
    February
    March
    April
    May
    June
    July
    August
    September
    October
    November
    December

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/BradEstey/laravel4-formbuilder-extended/blob/master/LICENSE) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

16

Last Release

4273d ago

Major Versions

v0.4.912 → v4.1.9122014-10-18

PHP version history (2 changes)v4.0.9PHP &gt;=5.3.0

v4.2PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65050e2971f866e7a534a49d752b1d885db693dbd86f2c2ec4ab164d0b5f5723?d=identicon)[Brad Estey](/maintainers/Brad%20Estey)

---

Top Contributors

[![BradEstey](https://avatars.githubusercontent.com/u/578665?v=4)](https://github.com/BradEstey "BradEstey (13 commits)")

---

Tags

laravellaravel4formbuilderprependselectWeekday

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/estey-formbuilder/health.svg)

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

###  Alternatives

[anahkiasen/former

A powerful form builder

1.3k1.4M14](/packages/anahkiasen-former)[bllim/datatables

Server-side handler of DataTables Jquery Plugin for Laravel 4

260416.5k4](/packages/bllim-datatables)[barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

163366.3k3](/packages/barryvdh-laravel-form-bridge)[thujohn/rss

RSS builder for Laravel 4

69130.2k3](/packages/thujohn-rss)[mindtwo/native-enum

Package for using native php enums.

2629.1k1](/packages/mindtwo-native-enum)

PHPackages © 2026

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