Download the PHP package estey/formbuilder without Composer
On this page you can find all versions of the php package estey/formbuilder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download estey/formbuilder
More information about estey/formbuilder
Files in estey/formbuilder
Package formbuilder
Short Description Laravel 4 extended FormBuilder Class.
License MIT
Homepage http://www.bradestey.com/projects/laravel-formbuilder
Informations about the package formbuilder
Laravel 4 FormBuilder Extended
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
Install this package through Composer by editing your project's composer.json
file to require estey/formbuilder
.
Then, update Composer:
Open app/config/app.php
, and replace 'Illuminate\Html\HtmlServiceProvider'
with:
Usage
- selectWeekday
- Translations
- Prepend Options
selectWeekday
The selectWeekday
method allows you to quickly generate a select field with a list of weekdays.
Will return:
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:
Prepend Options
To prepend options to a selectWeekday
and selectMonth
method, add a _prepend
array to the options array.
Will return:
License
The MIT License (MIT). Please see License File for more information.