NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #5848 most downloaded on Packagist
Validate and display simple and complex forms, casting forms to business objects and vice versa
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 the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
84 releases · first in 2012
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #235 fixes PHP 7.4 compatibility.
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #232 fixes validating $creationOption of Zend\Form\ElementFactory . Allowed
One column per quarter.
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #230 fixes the " __clone method called on non-object" error that happens wh
__clone method called on non-object" error that happens when$targetElement is null within a Collection instance. It now properlyAdded #228 adds support for PHP 7.3. Changed Nothing. Deprecated Nothing. Removed #228 removes support for zend-stdlib v2 releases. Fixed Nothing.
Added #224 adds support for zend-hydrator v3 releases, while keeping support for versions 1 and 2. #211 adds support for the HTML5 minlength attribute
#224 adds support for zend-hydrator v3 releases, while keeping support for
versions 1 and 2.
#211 adds support for the HTML5 minlength attribute 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.
Added Nothing. Changed Nothing. Deprecated Nothing. Removed Nothing. Fixed #218 ensures object values of select elements can be rendered without error
#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 null values 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 a FieldsetInterface instance.
$ helper -> addValidAttribute ( ' attribute-name ' ); $ helper -> addValidAttributePrefix ( ' prefix- ' );
#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 FormElementErrors view 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.
Added #104 adds the ability for the FormElementErrors view helper to translate validation error messages using the composed translator and text domain
#104 adds the ability for the FormElementErrors view helper to translate validation error messages using the composed translator and text domain instances.
#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 DateTime element such that it no longer attempts to use its DATETIME_FORMAT constant, but, rather, the value of the $format property, 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's DateTimeInterface (vs DateTime) when retrieving the value; this fixes edge cases where it was instead returning the format for DateTimeImmutable values.
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #161 adds an import statement to the ElementFactory, fixing an error
ElementFactory, fixing an error whereby checks for
Traversable creation options would lead to a service creation exception;
these now correctly identify traversable options and convert them to an array.FormElementManagerFactory factory initializes the plugin manager instance,
ensuring it is injecting the relevant configuration from the config service
and thus seeding it with configured form/form element services. This means
that the form_elements configuration will now be honored in non-zend-mvc
contexts.min and max attributes of the various DateTime elements, ensuring
that the elements raise an exception during instantiation if the values
provided are in a format that DateTime does not recognize for the element
type in question.### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #134 fixes how the FormElementManager handles invokable classes when
FormElementManager handles invokable classes when the autoAddInvokableClass
flag is enabled. Previously, it used the built-in utilities from
zend-servicemanager, but now correctly uses its own setInvokableClass()
method, which forces usage of the ElementFactory for such classes, and thus
ensures the name and options are passed to the element constructor.ArrayInput, but no
values are submitted. Previously, no messages were returned; now they are.InputProviders are merged into parent CollectionInputFilters;
previously, forms did not check if the element was in the target input filter
composed in a CollectionInputFilter, leading to duplicate elements with
varying behavior; now the inputs are correctly merged.### Added - #115 adds translatable HTML attributes to the abstract view helper. - #116 adds the InputFilterFactory dependency to the constructor. ###
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #122 fixes collection binding following successful validation. The f
### Added - #85 adds support for the zend-code 3.0 series (retaining support for the 2.* series). ### Deprecated - Nothing. ### Removed - Nothing. ###
FormElementManager,
ensuring that the initializer injecting a factory into a FormFactoryAware
instance is triggered before the initializer that calls init(), and also
that the initializer calling init() is always triggered last.Updates the composer suggestions list to remove those that were redundant, and to add explicit constraints and reasons for each listed (e.g., zend-cod
FormSearch and FormTel, which map to the FormSearch and FormTel view
helpers.### Added - #74 adds an alias for the FormTextarea view helper that is referenced in the documentation. ### Deprecated - Nothing. ### Removed - Nothin
FormTextarea view helper that is referenced in the
documentation.Zend\Form\View\HelperConfig to improve performance when running under
zend-servicemanager v3.### Added - #70 adds and publishes the documentation to https://zendframework.github.io/zend-form/ ### Deprecated - Nothing. ### Removed - Nothing. ##
### Added - #60 adds an alias from Zend\Form\FormElementManager to FormElementManager in the ConfigProvider. - #67 adds polyfills for the FormElementM
Zend\Form\FormElementManager to FormElementManager in the ConfigProvider.FormElementManager to vary its definitions based on the major version of
zend-servicemanager in use. FormElementManagerFactory was 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 new ElementFactory introduced in
the 2.7 series, thus ensuring instantiation is performed correctly.Zend\Form\FormElementManager to ensure that the default initializers,
injectFactory() and callElementInit() are registered as the first and last
initializers, respectively, during construction, restoring the pre-2.7
behavior.Factory::create() to the pre-2.7.1 behavior of not passing creation
options when retrieving an instance from the FormElementManager. This
ensures that options are not passed to Element/Fieldset/Form instances
until after they are fully initialized, ensuring that all dependencies are
present.### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #59 fixes the Module::init() method to properly receive a ModuleMana
Module::init() method to properly receive a ModuleManager instance, and
not expect a ModuleEvent.ConfigProvider, which maps the FormElementsManager and FormAnnotationBuilder servies previously provided by zend-mvc; the form abstract factory as pre
Zend\Form\FormElementManagerFactory, for creating and returning instances of
Zend\Form\FormElementManager. This factory was ported from zend-mvc, and
will replace it for version 3 of that component.Zend\Form\Annotation\AnnotationBuilderFactory, for creating and returning
instances of Zend\Form\Annotation\AnnotationBuilder. This factory was ported
from zend-mvc, and will replace it for version 3 of that component.ConfigProvider, which maps the FormElementsManager and
FormAnnotationBuilder servies 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 the ConfigProvider, and
provides configuration to the zend-modulemanager ServiceLocator in order
for modules to provide form and form element configuration.Zend\Form\View\HelperConfig; the functionality is made obsolete by
ConfigProvider. It now consumes the latter in order to provide view helper
configuration.### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #24 ensures that when Zend\Form\Form::getInputFilter() when lazy-cre
Zend\Form\Form::getInputFilter() when lazy-creates an InputFilter
instance, it is populated with the InputFilterFactory present in its own
FormFactory. This ensures that any custom inputs, input filters, validators,
or filters are available to the new instance.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's get() method.### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #40 and #43 prepare the component to be forwards compatible with eac
### Added - #17 updates the component to use zend-hydrator for hydrator functionality; this provides forward compatibility with zend-hydrator, and bac
### Added - Nothing. ### Deprecated - Nothing. ### Removed - Nothing. ### Fixed - #16 updates the zend-stdlib dependency to reference >=2.5.0,<2.7.0 t
>=2.5.0,<2.7.0 to ensure hydrators
will work as expected following extraction of hydrators to the zend-hydrator
repository.### Added - Nothing. ### Deprecated - #12 deprecates the AllowEmpty and ContinueIfEmpty annotations, to mirror changes made in zend-inputfilter#26. ##
AllowEmpty and ContinueIfEmpty annotations, to mirror changes made in
zend-inputfilter#26.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →