Download the PHP package spaanproductions/laravel-form without Composer

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

A powerful HTML and Form Builder package for the Laravel Framework. This package provides an elegant and fluent interface for creating forms and HTML elements in your Laravel applications.

Features

Requirements

Installation

1. Install via Composer

2. Service Provider Registration

The package will automatically register itself with Laravel using auto-discovery. If you're using Laravel 5.4 or earlier, you'll need to manually register the service provider in your config/app.php:

3. Publish Configuration (Optional)

The package doesn't require a configuration file by default, but you can publish one if you need to customize settings:

Basic Usage

Form Builder

Creating Forms

Form Input Types

Textarea

Select Dropdowns

Checkboxes and Radio Buttons

Buttons

HTML Builder

Links

Assets

Lists

Meta Tags

Generic HTML Tags

Helper Functions

The package provides several helper functions for convenience:

Blade Directives

You can use form and HTML methods directly as Blade directives:

Eloquent Integration

Using FormAccessible Trait

Add the FormAccessible trait to your Eloquent models to enable form mutators:

Model Binding

Custom Components

Creating Custom Form Components

Creating Custom HTML Components

Advanced Features

Request Consideration

Enable request consideration to automatically fill form values from the current request:

Old Input Handling

The form builder automatically handles old input from failed validation:

Method Spoofing

The form builder automatically handles method spoofing for PUT, PATCH, and DELETE requests:

File Uploads

API Reference

Form Builder Methods

Method Description
open($options) Open a new HTML form
model($model, $options) Create a model-based form
close() Close the current form
token() Generate CSRF token field
label($name, $value, $options) Generate a label element
input($type, $name, $value, $options) Generate an input element
text($name, $value, $options) Generate a text input
email($name, $value, $options) Generate an email input
password($name, $options) Generate a password input
hidden($name, $value, $options) Generate a hidden input
textarea($name, $value, $options) Generate a textarea
select($name, $list, $selected, $options) Generate a select dropdown
checkbox($name, $value, $checked, $options) Generate a checkbox
radio($name, $value, $checked, $options) Generate a radio button
submit($value, $options) Generate a submit button
button($value, $options) Generate a button
file($name, $options) Generate a file input
image($url, $name, $options) Generate an image submit button
reset($value, $options) Generate a reset button

HTML Builder Methods

Method Description
link($url, $title, $attributes) Generate an HTML link
secureLink($url, $title, $attributes) Generate a secure HTML link
linkAsset($url, $title, $attributes) Generate a link to an asset
linkRoute($name, $title, $parameters, $attributes) Generate a link to a named route
linkAction($action, $title, $parameters, $attributes) Generate a link to a controller action
mailto($email, $title, $attributes) Generate a mailto link
script($url, $attributes) Generate a script tag
style($url, $attributes) Generate a style tag
image($url, $alt, $attributes) Generate an image tag
favicon($url, $attributes) Generate a favicon link
meta($name, $content, $attributes) Generate a meta tag
tag($tag, $content, $attributes) Generate a generic HTML tag
ol($list, $attributes) Generate an ordered list
ul($list, $attributes) Generate an unordered list
dl($list, $attributes) Generate a definition list

Testing

The package includes comprehensive test coverage. To run the tests:

Contributing

Please see CONTRIBUTING.md for details.

License

The Laravel Form package is open-sourced software licensed under the MIT license.

Support


All versions of laravel-form with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/routing Version ^9.0|^10.0|^11.0|^12.0
illuminate/session Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/view Version ^9.0|^10.0|^11.0|^12.0
nesbot/carbon Version ^2.0|^3.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 spaanproductions/laravel-form contains the following files

Loading the files please wait ....