Download the PHP package webfox/laravel-forms without Composer

On this page you can find all versions of the php package webfox/laravel-forms. 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-forms

Laravel Forms

By default the views are setup for beagle Javascript not included

Directives

Form Open

Notes

Form Close

Notes

Form Field

Now we get into the fun stuff. The minimum required for a form field is a name

This will render a type="text" form field wrapped in a form group with the label of First Name and an appropriate value, Additionally this will handle displaying server validation errors.

This will render as above, however the label will be Your Name

This will render as above, however there will be no label

This will render a type="email" form field following the previous rules

This will render a select with the given options. If no value is found for this field we will also prepend an empty <option> tag

This will render a select with the given options, additionally the name on the select will be roles[]

This will render a field with the following additional attributes required data-boolean data-something="value"

Calculating Values

The following order of precedence is used for calculating values for a form

  1. Input matching the name via Laravels old($fieldName) helper.
  2. Attributes from the model provided to @form
  3. Values passed in directly e.g. @formField(['name' => 'name', 'value' => 'John']).

Additionally if the final calculated value is an object and has a getValue method, this will be called.

Note on old input and multiple forms...

Unfortunately, there's no way to scope Laravels old($fieldName) helper, meaning that if one form on a page has old input, all fields on the page with the same name will be populated with the old input. This is not a limitation of this package, rather it is a limitation of Laravel's old input handling.

A note about templates, backward compatibility and support

We've open sourced this package so you can use it too, however it is primarily designed for our inhouse usage, meaning some of the templates have specific rules that require javascript from our templates to run, additionally we'll be releasing often to add new features and fixes we need, but it may break your work.

Rather than using this package directly, we suggest you fork it and maintain a copy for your organisation.

IDE Helper

If you don't have them already, add the following to your projects .idea/blade.xml file so PHPstorm knows about the directives


All versions of laravel-forms with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
laravel/framework Version ^5.7|^5.8|^6.0|^7.0|^8.0|^9.0|^10.0
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 webfox/laravel-forms contains the following files

Loading the files please wait ....