Download the PHP package intentor/laravel-form without Composer

On this page you can find all versions of the php package intentor/laravel-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-form

Laravel Form

Form helpers for Laravel 5

Currently the project is DISCONTINUED. However, feel free to fork it and continue its development!

Contents

  1. Introduction
  2. Installation
  3. Quick start
  4. Helpers
    • open
    • model
    • close
    • label
    • readonly
    • hidden
    • text
    • textarea
    • email
    • url
    • number
    • password
    • checkbox
    • radio
    • checkboxGroup
    • radioGroup
    • dropdown
    • submit
    • reset
    • buttons
  5. Utilities
    • modelToList
    • modelToSelected
  6. Themes
  7. Changelog
  8. Support
  9. License

Introduction

Laravel Form provides a series of helpers for form creation in PHP pages and Blade templates.

Compatible with Laravel 5.

Installation

Laravel 5.0

At composer.json of your Laravel installation, add the following require line:

Run composer update to add the package to your Laravel app.

At config/app.php, add the Service Provider and the Facade:

Laravel 5.1+

At composer.json of your Laravel installation, add the following require line:

Run composer update to add the package to your Laravel app.

At config/app.php, add the Service Provider and the Facade:

Quick start

To create a form, you can user either Blade helpers or the Form Facade.

Using Blade helpers:

Using Facades:

Any controls you want to create must be placed between the opening and closing of the form.

Using Blade helpers:

Using Facades:

Helpers

open

Opens a form. See Themes for more details on form themes.

Blade helper

Facade

Parameters

model

Opens a form for a model. See Themes for more details on form themes.

Blade helper

Facade

Parameters

close

Closes a from.

Blade helper

Facade

Parameters

None.

label

Creates a label.

Blade helper

Facade

Parameters

readonly

Creates a readonly control.

Blade helper

Facade

Parameters

hidden

Creates a hidden field.

Blade helper

Facade

Parameters

text

Creates a text field.

Blade helper

Facade

Parameters

textarea

Creates a textarea field.

Blade helper

Facade

Parameters

email

Creates an e-mail field.

Blade helper

Facade

Parameters

url

Creates an URL field.

Blade helper

Facade

Parameters

number

Creates a number field.

Blade helper

Facade

Parameters

password

Creates a password field.

Blade helper

Facade

Parameters

checkbox

Creates a checkbox field.

Blade helper

Facade

Parameters

radio

Creates a radio field.

Blade helper

Facade

Parameters

checkboxGroup

Creates a checkbox group.

Blade helper

Facade

Parameters

radioGroup

Creates a radio group.

Blade helper

Facade

Parameters

dropdown

Creates a dropdown field.

Blade helper

Facade

Parameters

submit

Creates a submit button.

Blade helper

Facade

Parameters

reset

Creates a reset button.

Blade helper

Facade

Parameters

buttons

Creates form buttons (submit and reset).

Blade helper

Facade

Parameters

Utilities

modelToList

Generates an array compatible with lists (dropdowns, checkbox groups, etc.).

Facade

Parameters

modelToSelected

Generates an array of selected values.

Facade

Parameters

Themes

Themes are a way to customize the look of forms using partial views.

Available themes

There are three different themes available:

  1. default: a simple form theme without any third party dependencies.
  2. horizontal: default Bootstrap horizontal form (Requires Bootstrap 3).
  3. vertical: default Bootstrap vertical form (Requires Bootstrap 3).

All themes are subfolders at src/resources/views/partials/form folder.

Creating a custom theme

To create a custom theme, copy a base theme from vendor/intentor/laravel-form/src/resources/views/partials/form at your local Laravel installation to the resources/views/partials/form of your app.

Each helper has its own Blade template file, which can then be customized.

Note: the name of the theme's folder is the name that must be used when setting the theme.

Changelog

Please see CHANGELOG.md.

Support

Found a bug? Please create an issue on the GitHub project page or send a pull request if you have a fix or extension.

You can also send me a message at [email protected] to discuss more obscure matters about the component.

License

Licensed under the The MIT License (MIT). Please see LICENSE for more information.


All versions of laravel-form with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
laravel/framework Version ~5.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package intentor/laravel-form contains the following files

Loading the files please wait ....