承接 lanin/1000forms 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lanin/1000forms

最新稳定版本:0.1

Composer 安装命令:

composer require lanin/1000forms

包简介

An easy way to create forms of any complexity with integrated validation and filtration

README 文档

README

Features

  • It can be used in any sort of projects to build any sort of forms.
  • Any functionality can be extended. Validators, filters, elements - everything can be modified.
  • Markups of all elements and whole form can be modified as you like. Even by using a template
  • It already has a built-in engine to validate all the inputs
  • You can modify and filter all the values right in the form
  • You can create dynamic forms with array values

You can find full documentation here: http://1000forms.lanin.me

Simple example

<?php
 
// Initialise object
$form = new \Lanin\Forms\Form();
 
// Set name of our form
$form->setName('login_form');
 
// Add "Name" textfield
$form->addElement('textfield', 'login', array('label' => 'Name'));
// Add "Password" element
$form->addElement('password', 'password', array('label' => 'Password'));
 
// And add wubmit button
$form->addElement('submit', 'login', array('value' => 'Login'));
 
// Check if form was submitted and values are valid
if ($form->isValid()) {
    // Get values and print them
    print_r($form->getFormState());
}
 
// Print our form
print $form;

Released under MIT license.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-15