aldarien/form

Form building for frontend

1.0.1 2017-12-20 14:16 UTC

This package is auto-updated.

Last update: 2024-04-12 03:31:58 UTC


README

Latest Stable Version License Travis-CI

Form building for frontend

Version

Versioning is done according to SemVer Current version: 1.0.0

Motivation

As with any programmer, I wanted a DRY form building. With that in mind, I created this frontend assistant for form building. In this version only form components are included and there is still some repeating, but simplified.

Installation

Requirements

Dev

Optional

Installation

Install using composer:

composer require aldarien/form

Usage

In the frontend of your choice echo the form function.

Basic html

<?php echo form('create', ['action' => 'form_parse.php']); ?>

or:

<?= form('text', ['name' => 'text_field']); ?>

Laravel Blade

{{ form('submit', ['value' => 'Submit Form']) }}

Testing

Testing was done with PHPUnit in the testing branch.

Contribute

For contributing, I use GIT and GitFlow So clone from GitHUB, checkout a feature branch from the develop branch. When done rebase and test with PHPUnit. When everything is done and ready create a pull request for the develop branch.

License

The license is MIT.

Permissions

  • Commercial use
  • Distribution
  • Modification
  • Private use

Conditions

  • License and copyright notice

Limitations

  • Liability
  • Warranty