Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 139 | All time: 8,988 This week: 268![]() |
Version | License | PHP version | Categories | |||
fphp-fields 1.1.1 | GNU General Publi... | 5 | HTML, PHP 5, Libraries |
Description | Author | ||||||||
This package can compose and render forms defined programmatically. |
|
Links: PHP Classes and Github
Simple Online Example and Bootstrap Online Example
Class from package FPHP.
Feature: Have a automatic integration with jquery.validate.js methods for all fields.
___
This class can compose in PHP and render in HTML standard fields forms, like: checkbox, radio, inputs, select, textarea and button. Each field have your specific class, and you can modify and customize with your styles (have an example with Bootstrap). Also include a class with error parser, case you access any class/function using absence or wrong values.
___
/php/
|__ /fphp/
| |__ /fields/
| |__ ErrorParserFields.php
| |__ FieldInterface.php
| |__ MasterFields.php
| |__ InputField.php
| |__ BoxesField.php
| |__ SelectField.php
| |__ TextareaField.php
| |__ ButtonField.php
| |__ FormField.php
|__ /example/
/js/
|__ jquery.min.js
|__ /validate/
|__ jquery.validate.min.js
|__ jquery.validate-auto.js
|__ jquery.validate-messages-pt-br.js
___
Example: Litle example to show some methods. See others examples in ./example/
require('../dist/php/autoload.php');
use \FPHP\Fields\InputField;
use \FPHP\Fields\FormField;
$input = new InputField('text', array('name'=>'full_name', 'validate'=>['required'=>true, 'minlength'=>10]), 'Name');
//$input->construct_field(); //<= echo the 'input' tag
//$input->get_field(); //<= get the 'input' tag
$form = new FormField(array('action'=>'#', 'method'=>'get', 'name'=>'form_example'));
$form->add_field($input);
$form->construct_form();
___
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.