This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

Overview

HTML5 Forms for Laravel

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements.

How to Install

  1. Install the braunson/laravel-html5-forms package

    $ composer require "braunson/laravel-html5-forms:dev-master"
  2. Update app/config/app.php to activate the package

    # Add `LaravelHTML5FormsServiceProvider` to the `providers` array
    'providers' => array(
        ...
        'Braunson\LaravelHTML5Forms\LaravelHTML5FormsServiceProvider',
    )

Usage / Supported Element Types

Since the package extends the default FormBuilder, you can just use Form::field() like you would normally but with the following supported items.

Color

Form::color($name, $value = null, $options = array())

Date

Form::date($name, $min = null, $max = null, $options = array())

This field requires you input atleast min or max or both fields.

Time

Form::time($name, $options = array())

Datetime

Form::dateTime($name, $options = array())

Datetime-local

Form::dateTimeLocal($name, $options = array())

Email

Form::email($name, $value = null, $options = array())

Week

Form::week($name, $value = null, $options = array())

Month

Form::month($name, $value = null, $options = array())

Number

Form::number($name, $value = null, $step = null, $options = array())

To specify a min/max range, add 'minmax' => '0|10' to your options array. By default if no minmax is specified, it is min 0 and max 10.

Tip: To not output min/max, specify in options array 'minmax' => false

Range

Form::range($name, $value = null, $options = array())

To specify a min/max range, add 'minmax' => '0|10' to your options array. By default if no minmax is specified, it is min 0 and max 10.

Tip: To not output min/max, specify in options array 'minmax' => false

Search

Form::search($name, $value = null, $options = array())

Tel

Form::tel($name, $value = null, $options = array())

URL

Form::url($name, $value = null, $options = array())

Reporting Bugs or Feature Requests

Please report any bugs or feature requests on the github issues page for this project here:

https://github.com/Braunson/laravel-html5-forms/issues

Contributing

Comments
  • Problem with installing with Laravel 5

    Problem with installing with Laravel 5

    Hey,

    I get this error message when trying to install it with Laravel 5 setup.

    Installation request for laravel/framework == 5.0.2.0 -> satisfiable by laravel/framework[v5.0.2].

    Regards

    opened by pascallammers 4
  • Trying to use this library with laravel 4.2

    Trying to use this library with laravel 4.2

    Hello, last year I've started a project with laravel 4.2 and some other libraries included this one, this is what I have in the composer.json

                    "laravel/framework": "4.2.*",
    		"bbatsche/entrust": "~2.0",
    		"braunson/laravel-html5-forms": "dev-master", 
    		"andywer/js-localization": "dev-laravel-4.2",
    		"maatwebsite/excel": "~1.3.0",
    		"mcamara/laravel-localization": "0.15.*",
    		"Jtgrimes/less4laravel": "~0.3",
    		"tinymce/tinymce": "4.1.9"
    

    but when I try to composer install it throws me an error

     [InvalidArgumentException]
      Could not find package braunson/laravel-html5-forms at any version for your
       minimum-stability (stable). Check the package spelling or your minimum-sta
      bility
    

    Problem 1 - The requested package braunson/laravel-html5-forms could not be found in any version, there may be a typo in the package name.

    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
    
    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
    
    

    I've read the google group post but I can't get it working, any help please? Thanks you

    help wanted hacktoberfest 
    opened by deniz946 1
  • Why did you remove the master (L4) branch from packagist?

    Why did you remove the master (L4) branch from packagist?

    I was migrating an old Laravel 4 project depending on your bundle, but got constraint issues with it not being able to find the dev-master branch. I went to check, and it's indeed gone from packagist. Is it possible to put it back, or to make a separate Laravel 4 branch?

    help wanted hacktoberfest 
    opened by jonasva 1
  • Step parameter missing in documentation for number

    Step parameter missing in documentation for number

    Hi,

    In the readme the line that documents the number is missing the step parameter, which causes that you send the wrong parameter until review the code.

    BTW, great library! :)

    opened by nestormata 1
  • Update packagist

    Update packagist

    With reference to PR #2 can you update packagist, or add the hook if not already there.

    https://packagist.org/packages/braunson/laravel-html5-forms still refrences commit https://github.com/Braunson/laravel-html5-forms/commit/a470018 its curently 6 commits behind

    opened by djekl 1
  • Remove src/migrations class map

    Remove src/migrations class map

    This was causing an install failure within laravel

    [RuntimeException]
      Could not scan for classes inside "/projects/laravel/vendor/braunson/laravel-html5-forms/src/migrations" which does not appear to be a file nor a folder
    
    opened by djekl 1
Releases(4.0)
Owner
Braunson Yager
Designer, Developer, Entrepreneur
Braunson Yager
Worlds (soon to be) most advanced Anime site! Featuring Administration features and everything you need for users and yourself. The successor of aniZero.

/**********************************************************************\ | _____ H33Tx & xHENAI __ 31.01.2022| |

HENAI.eu 40 Jan 3, 2023
A package to flash multiple messages using Laravels default session message flashing system

Flash multiple advanced messages with both text, messages and links An opinionated solution for flashing multiple advanced messages from the backend a

Bilfeldt 6 Jan 18, 2022
Adds a way to write php and run it directly in Laravels' Artisan Tinker.

Adds a way to write php in PhpStorm/IDEA and run it directly as if through laravel artisan tinker - allowing you to quickly run a piece of code with a

Robbin 120 Jan 2, 2023
This package extends Illuminate to provide partitioned table creation in migrations.

Laravel Partitions for Migrations This package extends Illuminate to provide partitioned table creation in migrations for PostgreSQL. Support for othe

ORPTech 9 Oct 24, 2022
A simple API documentation package for Laravel using OpenAPI and Stoplight Elements

Laravel Stoplight Elements Easily publish your API documentation using your OpenAPI document in your Laravel Application. Installation You can install

Steve McDougall 24 Nov 17, 2022
Custom Blade components to add sortable/drag-and-drop HTML elements in your apps.

Laravel Blade Sortable Demo Repo Installation You can install the package via composer: composer require asantibanez/laravel-blade-sortable After the

Andrés Santibáñez 370 Dec 23, 2022
🎨 Free custom elements for the WordPress plugin Oxygen Builder.

?? Custom Elements for Oxygen Builder Free custom elements for the WordPress plugin Oxygen Builder. If you find the elements useful, click on the star

Simon Vidman 62 Dec 29, 2022
🧾 Online test site with the human sciences theme. Using: HTML5, CSS3, Js., PHP7 and MySQL. 🚀

form-ciencias-humanas ?? Technologies Lunacy HTML5 CSS3 PHP7 MYSQL Animate.css Illustrations from icons8: Earth care from Anna Antipina Earth and Moon

Vinícius 1 Jan 9, 2022
PcTools is a proyect developed using {JavaScript,HTML5,CSS} for frontend and {PHP => Mysql} for backend.

PcTools-Proyect PcTools is a proyect developed using {JavaScript,HTML5,CSS} for frontend and {PHP => Mysql} for backend. Future Improvements # Replace

Ihab Fallahy 1 Feb 5, 2022
Shell script for Git module deployment with include/exclude filters.

Deploy multiple Git repositories in an unique folder modgit is a shell script for deploying multiple Git repositories in root folder of any project, w

Johann Reinké 175 Nov 22, 2022
Need some filters? This package is based on the Repository Design Pattern to let you create specific queries easily.

DevMakerLab/Laravel-Filters Need some filters? This package is based on the Repository Design Pattern to let you create specific queries easily. Insta

DevMakerLab 19 Feb 20, 2022
This project is based on the aggregation of jobs from some technology companies.

FIND-JOBS-ALERT ?? ?? ?? This project is based on the aggregation of jobs from some technology companies. Check below, some companies avaliable in pro

Wellisson Ribeiro 2 Dec 1, 2021
Rami's presskit() with some extra conveniences.

presskittie() presskittie() is presskit() by Rami Ismail, but with some conveniences: run and develop it locally with docker deploy it to Github Pages

Juan Uys 14 Oct 31, 2022
Laravel Manager - provides some manager functionality for Laravel

Laravel Manager Laravel Manager was created by, and is maintained by Graham Campbell, and provides some manager functionality for Laravel. Feel free t

Graham Campbell 371 Dec 17, 2022
Providing some testing functionality for Laravel

Laravel TestBench Laravel TestBench was created by, and is maintained by Graham Campbell, and provides some testing functionality for Laravel. It util

Graham Campbell 50 Dec 20, 2022
Laravel Manager provides some manager functionality for Laravel

Laravel Manager Laravel Manager was created by, and is maintained by Graham Campbell, and provides some manager functionality for Laravel. Feel free t

Graham Campbell 371 Jul 11, 2022
This Package helps you in laravel application to log all desired activity for each request from request entry point to generate response at a single snapshot.

Laravel Scenario Logger This Package helps you in laravel application to log all desired activity for each request from request entry point to generat

Mehrdad Mahdian 6 Sep 27, 2021
Simple Laravel 5 package to dump all running queries on the page.

Abandoned: Use this package instead Laravel QueryDumper Introduction Simple Laravel 5 package to dump all running queries on the page. If it's SELECT

Sarfraz Ahmed 24 May 14, 2020
This package provides new helper functions that take care of handling all the translation hassle and do it for you.

Laravel Translate Message ?? This package provides new helper functions that take care of handling all the translation hassle and do it for you. Insta

Basel Rabia 17 Feb 8, 2022