alez / html5input
Input that accept type as a parameter, so you can make type="email" or any other types.
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alez/html5input
Requires
- php: >=5.3.0
- zendframework/zendframework1: ^1.12@dev
This package is not auto-updated.
Last update: 2025-09-27 23:57:45 UTC
README
Plugin to use with Zend Framework 1. Allows you to use html5 form elements such as "email" or "number" or whatever.
how to install
composer require alez/html5input
how to use
<?php class My_Form extends Zend_Form { public function init() { $email = new Html5Input_Element_AnyType('email', array( 'type' => 'email', 'filters' => array('StringTrim', 'StringToLower'), 'validators' => array( array('EmailAddress'), ), 'required' => true, 'placeholder' => 'Email', )); $this->addElement($email); } }