Download the PHP package helmut/forms without Composer

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

Helmut\Forms

Build Status Scrutinizer Code Quality Code Coverage

A customisable and testable form abstraction library. Think of it as a request model on steroids. We all handle forms in different ways. Forms reduces the complexity and allows you focus on design. Use the included default fields, or build up your own library of reusable and testable fields, and drop them into every application you build.

Documentation

Installation

To get the latest version of Forms, simply require the project using Composer:

Instead, you may of course manually update your require block and run composer update if you so choose:

If you are using Laravel you need to register the service provider. Open up config/app.php and add the Helmut\Forms\Providers\Laravel::class key to the providers array.

Usage

Step 1

Create a class that extends \Helmut\Forms\Form.

Step 2

Now you can create a form.

Or in Laravel, simply type hint route or controller methods.

Step 2

Define fields to build the form.

Or alternatively you can create a class just for this specific form that extends \App\Forms\Form. Then fields can be defined within a define method and they will be added automatically.

Step 4

You can now render the form and handle submissions.

Or in Laravel:

Step 6

Check out the form!

login

API Reference

These methods allow you to interact with your form:

Field Types

These field types have been included by default:

button

Example:

$form->button('signup')->label('Sign Up');

button


text

Validations: between(min, max), min(num), max(num), alpha, alpha_num, alpha_dash, in(array), not_in(array)

Example:

$form->text('address')->label('Address')->required();

text


name

Example:

$form->name('name')->label('Name')->required();

name


email

Example:

$form->email('email')->label('Email Address')->required();

email


number

Validations: between(min, max), min(num), max(num), integer, in(array), not_in(array)

Example:

$form->number('age')->label('Age')->integer()->min(18)->required();

number


password

Example:

$form->password('password')->label('Password')->required();

password


paragraph_text

Example:

$form->paragraph_text('comments')->label('Comments');

paragraph_text


checkbox

Example:

$form->checkbox('subscribe')->label('Subscribe to our newsletter');

checkbox


checkboxes

Example:

$form->checkboxes('interests')->label('Interests')->options(['golf' => 'Golf', 'swimming' => 'Swimming', 'dancing' => 'Dancing', 'reading' => 'Reading'])->required();

checkboxes


dropdown

Example:

$form->dropdown('colour')->label('Colour')->options(['red' => 'Red', 'green' => 'Green', 'blue' => 'Blue']);

dropdown


search

Example:

$form->search('search');

search


Customisation

Forms was designed as a framework upon which developers can build a library of modules to simplify the repetitive task of processing complex requests. A basic set of fields and templates are included, however the expectation is that you will use those as a starting point for customisation. By rolling your own, you can design, build and test them once, and drop them into any application.

Templates

A few basic template packages are provided by default that are compatible with common css frameworks such as Bootstrap and Foundation. These should provide a great base for Neat are in the pipeline.

Languages

Plugins

Security

If you discover any security related issues, please email helmut.github [at] gmail.com instead of using the issue tracker. All security vulnerabilities will be promptly addressed.

License

The MIT License (MIT). Please see License File for more information.


All versions of forms with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
mustache/mustache Version ~2.0
twig/twig Version ~1.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 helmut/forms contains the following files

Loading the files please wait ....