zendframework/zend-form
Abandoned; use laminas/laminas-form. Validate and display simple and complex forms, casting forms to business objects and vice versa
2.14.3
14M downloads/mo
#4730 most downloaded on Packagist
zendframework/zend-form
What this package is like to depend on
Last release 7 years ago
no release in 18 months
Ships fairly regularly
a new release about every 3 months
Some releases are documented
notes for 24 of 84 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
84 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
56 releases · Oct 2012 to Oct 2019Releases
latest 60 of 84-
2.14.304 Oct 2019Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #235 fixes PHP 7.4 compatibility.
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #235 fixes PHP 7.4 compatibility.
-
2.14.203 Oct 2019Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
2.14.126 Feb 2019Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #230 fixes the "
__clonemethod called on non-object" error that happens when
the$targetElementisnullwithin aCollectioninstance. It now properly
sets the data to an empty array in such circumstances.
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #230 fixes the "
__clonemethod called on non-object" error that happens when the$targetElementisnullwithin aCollectioninstance. It now properly sets the data to an empty array in such circumstances.
-
2.14.007 Jan 2019Release notes
Open source →Added
- #228 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- #228 removes support for zend-stdlib v2 releases.
Fixed
- Nothing.
Release notes
Open source →Added
- #228 adds support for PHP 7.3.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- #228 removes support for zend-stdlib v2 releases.
Fixed
- Nothing.
-
2.13.011 Dec 2018Release notes
Open source →Added
-
#224 adds support for zend-hydrator v3 releases, while keeping support for
versions 1 and 2. -
#211 adds support for the HTML5
minlengthattribute in all form elements
that support it. -
#217 adds
Zend\Form\View\HelperTrait, which can be used to provide IDE
autocompletion for view helpers provided by zend-form. See
https://docs.zendframework.com/zend-form/view-helpers/#ide-auto-completion-in-templates
for more information.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
-
#224 adds support for zend-hydrator v3 releases, while keeping support for versions 1 and 2.
-
#211 adds support for the HTML5
minlengthattribute in all form elements that support it. -
#217 adds
Zend\Form\View\HelperTrait, which can be used to provide IDE autocompletion for view helpers provided by zend-form. See https://docs.zendframework.com/zend-form/view-helpers/#ide-auto-completion-in-templates for more information.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
-
2.12.111 Dec 2018Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#218 ensures object values of select elements can be rendered without error.
-
#216 fixes an issue when performing data binding and a fieldset has no mapped
input elements, castingnullvalues to empty arrays to ensure they can be
passed to an input filter. -
#207 fixes the return value annotation for the
Fieldset::get()method to
indicate it can also return aFieldsetInterfaceinstance.
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#218 ensures object values of select elements can be rendered without error.
-
#216 fixes an issue when performing data binding and a fieldset has no mapped input elements, casting
nullvalues to empty arrays to ensure they can be passed to an input filter. -
#207 fixes the return value annotation for the
Fieldset::get()method to indicate it can also return aFieldsetInterfaceinstance.
-
2.12.016 May 2018Release notes
Open source →Added
-
#194 adds the ability to whitelist additional HTML attributes for use with a view helper,
as well as attribute prefixes. These can be enabled via the following:$helper->addValidAttribute('attribute-name'); $helper->addValidAttributePrefix('prefix-');
-
#188 adds a new method to the
FormElementErrorsview helper,setTranslateMessages(bool $flag).
By default, the helper continues to translate error messages (if a translator
is present), as introduced in 2.11.0. However, using this method, you can
disable translation, which may be necessary to prevent double translation
and/or to reduce logs from missed translation lookups. Because the method
implements a fluent interface, you may do so in one line:echo $this->formElementErrors()->setTranslateMessages(false)->render($element);
Note: you will need to reset the value afterwards if you want translations to occur
in later invocations.
Changed
- #193 modifies how attributes are escaped. If zend-espaper raises an exception
for an invalid attribute value, helpers will now catch the exception, and use
a blank value for the attribute. This prevents 500 errors from being raised
for such pages.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
-
#194 adds the ability to whitelist additional HTML attributes for use with a view helper, as well as attribute prefixes. These can be enabled via the following:
$helper->addValidAttribute('attribute-name'); $helper->addValidAttributePrefix('prefix-'); -
#188 adds a new method to the
FormElementErrorsview helper,setTranslateMessages(bool $flag). By default, the helper continues to translate error messages (if a translator is present), as introduced in 2.11.0. However, using this method, you can disable translation, which may be necessary to prevent double translation and/or to reduce logs from missed translation lookups. Because the method implements a fluent interface, you may do so in one line:echo $this->formElementErrors()->setTranslateMessages(false);Note: you will need to reset the value afterwards if you want translations to occur in later invocations.
Changed
- #193 modifies how attributes are escaped. If zend-espaper raises an exception for an invalid attribute value, helpers will now catch the exception, and use a blank value for the attribute. This prevents 500 errors from being raised for such pages.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
-
2.11.006 Dec 2017Release notes
Open source →Added
-
#104 adds the ability for the
FormElementErrorsview helper to translate validation error messages using the composed translator and text domain instances.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
Fixed
-
#162 fixes an issue with hydration when a form has called
setWrapElements(true), ensuring that binding values in a fieldset will correctly identify the elements in the provided data. -
#172 fixes the
DateTimeelement such that it no longer attempts to use itsDATETIME_FORMATconstant, but, rather, the value of the$formatproperty, when representing the element; this change allows developers to override the format, which was the original intention. -
#178 loosens the checks in
Zend\Form\Element\DateTime::getValue()to check against PHP'sDateTimeInterface(vsDateTime) when retrieving the value; this fixes edge cases where it was instead returning the format forDateTimeImmutablevalues.
Release notes
Open source →Added
-
#104 adds the ability for the
FormElementErrorsview helper to translate validation error messages using the composed translator and text domain instances.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
Fixed
-
#162 fixes an issue with hydration when a form has called
setWrapElements(true), ensuring that binding values in a fieldset will correctly identify the elements in the provided data. -
#172 fixes the
DateTimeelement such that it no longer attempts to use itsDATETIME_FORMATconstant, but, rather, the value of the$formatproperty, when representing the element; this change allows developers to override the format, which was the original intention. -
#178 loosens the checks in
Zend\Form\Element\DateTime::getValue()to check against PHP'sDateTimeInterface(vsDateTime) when retrieving the value; this fixes edge cases where it was instead returning the format forDateTimeImmutablevalues.
-
-
2.10.218 May 2017Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #161 adds an import
statement to the
ElementFactory, fixing an error whereby checks forTraversablecreation options would lead to a service creation exception; these now correctly identify traversable options and convert them to an array. - #164 fixes how the
FormElementManagerFactoryfactory initializes the plugin manager instance, ensuring it is injecting the relevant configuration from theconfigservice and thus seeding it with configured form/form element services. This means that theform_elementsconfiguration will now be honored in non-zend-mvc contexts. - #159 fixes the behavior
of the
minandmaxattributes of the variousDateTimeelements, ensuring that the elements raise an exception during instantiation if the values provided are in a format thatDateTimedoes not recognize for the element type in question.
-
2.10.126 Apr 2017Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #134 fixes how the
FormElementManagerhandles invokable classes when theautoAddInvokableClassflag is enabled. Previously, it used the built-in utilities from zend-servicemanager, but now correctly uses its ownsetInvokableClass()method, which forces usage of theElementFactoryfor such classes, and thus ensures the name and options are passed to the element constructor. - #136 fixes how error
messages are provided when an element uses a required
ArrayInput, but no values are submitted. Previously, no messages were returned; now they are. - #156 fixes how elements
that act as
InputProviders are merged into parentCollectionInputFilters; previously, forms did not check if the element was in the target input filter composed in aCollectionInputFilter, leading to duplicate elements with varying behavior; now the inputs are correctly merged.
-
2.10.023 Feb 2017Release notes
Open source →Added
- #115 adds translatable HTML attributes to the abstract view helper.
- #116 adds the InputFilterFactory dependency to the constructor.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #139 adds support for ReCaptcha version 2 though zend-captcha 2.7.1.
-
2.9.222 Sep 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #122 fixes collection binding following successful validation. The fix introduced in #106, while it corrected the behavior around binding a collection that was not re-submitted, broke behavior around binding submitted collections. #122 corrects the issue, retaining the fix from #106.
-
2.9.114 Sep 2016Release notes
Open source →Added
- #85 adds support for the zend-code 3.0 series (retaining support for the 2.* series).
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #119 fixes the order in
which the default initializers are injected into the
FormElementManager, ensuring that the initializer injecting a factory into aFormFactoryAwareinstance is triggered before the initializer that callsinit(), and also that the initializer callinginit()is always triggered last. - #106 updates behavior around binding collection values to a fieldset or form such that if the collection is not part of the current validation group, its value will not be overwritten with an empty set.
-
2.9.007 Jun 2016Release notes
Open source →Added
- #57 adds new elements,
FormSearchandFormTel, which map to theFormSearchandFormTelview helpers.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Updates the composer suggestions list to remove those that were redundant, and to add explicit constraints and reasons for each listed (e.g., zend-code is required for annotations support).
- #57 adds new elements,
-
2.8.407 Jun 2016Release notes
Open source →Added
- #74 adds an
alias for the
FormTextareaview helper that is referenced in the documentation.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #77 updates
Zend\Form\View\HelperConfigto improve performance when running under zend-servicemanager v3. - #19 provides a thorough fix for an issue when removing all items in a collection associated with a form. Prior to this release, values that existed in the collection persisted when a form submission intended to remove them.
- #74 adds an
alias for the
-
2.8.303 May 2016Release notes
Open source →Added
- #70 adds and publishes the documentation to https://zendframework.github.io/zend-form/
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #69 fixes aliases in the
FormElementManagerpolyfill for zend-servicemanager v2 to ensure they are canonicalized correctly.
-
2.8.201 May 2016Release notes
Open source →Added
- #60 adds an alias from
Zend\Form\FormElementManagertoFormElementManagerin theConfigProvider. - #67 adds polyfills for
the
FormElementManagerto vary its definitions based on the major version of zend-servicemanager in use.FormElementManagerFactorywas updated to return the specific polyfill version, and an autoload rule was added to alias the class to the correct polyfill version. The polyfills were necessary to ensure that invokable classes are mapped to the newElementFactoryintroduced in the 2.7 series, thus ensuring instantiation is performed correctly.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #65 fixes instantiation
of
Zend\Form\FormElementManagerto ensure that the default initializers,injectFactory()andcallElementInit()are registered as the first and last initializers, respectively, during construction, restoring the pre-2.7 behavior. - #67 fixes the behavior
of
Factory::create()to the pre-2.7.1 behavior of not passing creation options when retrieving an instance from theFormElementManager. This ensures that options are not passed to Element/Fieldset/Form instances until after they are fully initialized, ensuring that all dependencies are present.
- #60 adds an alias from
-
2.8.118 Apr 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #59 fixes the
Module::init()method to properly receive aModuleManagerinstance, and not expect aModuleEvent.
-
2.8.007 Apr 2016Release notes
Open source →Added
- #53 adds
Zend\Form\FormElementManagerFactory, for creating and returning instances ofZend\Form\FormElementManager. This factory was ported from zend-mvc, and will replace it for version 3 of that component. - #53 adds
Zend\Form\Annotation\AnnotationBuilderFactory, for creating and returning instances ofZend\Form\Annotation\AnnotationBuilder. This factory was ported from zend-mvc, and will replace it for version 3 of that component. - #53 exposes the package
as a config-provider and ZF component, by adding:
ConfigProvider, which maps theFormElementsManagerandFormAnnotationBuilderservies previously provided by zend-mvc; the form abstract factory as previously registered by zend-mvc; and all view helper configuration.Module, which maps services and view helpers per theConfigProvider, and provides configuration to the zend-modulemanagerServiceLocatorin order for modules to provide form and form element configuration.
Deprecated
- #53 deprecates
Zend\Form\View\HelperConfig; the functionality is made obsolete byConfigProvider. It now consumes the latter in order to provide view helper configuration.
Removed
- Nothing.
Fixed
- Nothing.
- #53 adds
-
2.7.107 Apr 2016Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #24 ensures that when
Zend\Form\Form::getInputFilter()when lazy-creates anInputFilterinstance, it is populated with theInputFilterFactorypresent in its ownFormFactory. This ensures that any custom inputs, input filters, validators, or filters are available to the new instance. - #38 removes the arbitrary restriction of only the "labelledby" and "describedby" aria attributes on form element view helpers; any aria attribute is now allowed.
- #45 fixes the behavior
in
Zend\Form\Factory::create()when pulling elements from the form element manager; it now will pass specifications provided for the given element when calling the manager'sget()method.
-
2.7.022 Feb 2016 -
2.6.022 Sep 2015Release notes
Open source →Added
- #17 updates the component to use zend-hydrator for hydrator functionality; this provides forward compatibility with zend-hydrator, and backwards compatibility with hydrators from older versions of zend-stdlib.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
2.5.322 Sep 2015Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #16 updates the
zend-stdlib dependency to reference
>=2.5.0,<2.7.0to ensure hydrators will work as expected following extraction of hydrators to the zend-hydrator repository.
-
2.5.209 Sep 2015Release notes
Open source →Added
- Nothing.
Deprecated
- #12 deprecates the
AllowEmptyandContinueIfEmptyannotations, to mirror changes made in zend-inputfilter#26.
Removed
- Nothing.
Fixed
-
2.5.103 Jun 2015Nothing published for this version
-
2.5.003 Jun 2015Nothing published for this version
-
2.4.1309 Sep 2015Nothing published for this version
-
2.4.12no dateNothing published for this version
-
2.4.11no dateNothing published for this version
-
2.4.10no dateNothing published for this version
-
2.4.9no dateNothing published for this version
-
2.4.8no dateNothing published for this version
-
2.4.707 May 2015Nothing published for this version
-
2.4.6no dateNothing published for this version
-
2.4.5no dateNothing published for this version
-
2.4.4no dateNothing published for this version
-
2.4.3no dateNothing published for this version
-
2.4.2no dateNothing published for this version
-
2.4.1no dateNothing published for this version
-
2.4.028 Mar 2015Nothing published for this version
-
2.3.910 Feb 2015Nothing published for this version
-
2.3.8no dateNothing published for this version
-
2.3.7no dateNothing published for this version
-
2.3.6no dateNothing published for this version
-
2.3.5no dateNothing published for this version
-
2.3.413 Jan 2015Nothing published for this version
-
2.3.311 Aug 2014Nothing published for this version
-
2.3.2no dateNothing published for this version
-
2.3.115 Apr 2014Nothing published for this version
-
2.3.012 Mar 2014Nothing published for this version
-
2.2.1015 Apr 2014Nothing published for this version
-
2.2.9no dateNothing published for this version
-
2.2.8no dateNothing published for this version
-
2.2.7no dateNothing published for this version
-
2.2.605 Mar 2014Nothing published for this version
-
2.2.531 Oct 2013Nothing published for this version
-
2.2.426 Aug 2013Nothing published for this version
-
2.2.321 Aug 2013Nothing published for this version
-
2.2.222 Jul 2013Nothing published for this version
-
2.2.112 Jun 2013Nothing published for this version