forms

📝 Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.

OTHER License

Downloads
29.3K
Stars
491
Committers
93

Bot releases are visible (Hide)

forms - Released version 3.2.4 Latest Release

Published by dg 2 months ago

  • Container::getValue() supports conversion to enums [Close #337]
  • UploadControl: added setNullable()
  • netteForms: rewritten to TypeScript
  • Button: is omitted from values #330
  • DefaultFormRenderer: fixed cummulate instances of Nette\HtmlStringable #335
  • Helpers::getSupportedTypes() returns array #332
  • support for PHP 8.4
forms - Released version 3.2.3

Published by dg 6 months ago

  • netteForms: modernized code
  • netteForms: reimplemented compact transmission mode via formdata event
  • netteForms: processes only elements with 'data-nette-rules'
  • netteForms: added typehints to jsDoc
  • netteForms: improved badInput reporting
  • netteForms: rule 'length' works with numbers #329
  • Form: does not show 'no associated handlers' error if the form is not submitted by the button
  • Blueprint: fixed nullable types detection
  • TextBase, HiddenField: added isNullable()
forms - Released version 3.2.2

Published by dg 7 months ago

  • SelectBox: prompt <option> is hidden
  • SelectBox: prompt key is always unique
  • typos
forms - Released version 3.2.1

Published by dg 8 months ago

  • netteForms: converts float & int to numbers #313
  • partially revert "some classes marked as final (BC break)"
  • SubmitButton::setValidationScope() accepts strings
  • Container::getUntrustedValues() has default value
forms - Released version 3.2.0

Published by dg 9 months ago

  • requires PHP 8.1
  • uses PHP 8.1 features
  • Latte: {inputError} must have argument
  • BaseControl, ControlGroup::getOption() parameter $default is deprecated
  • Container: getValues(true) is deprecated (BC break)
forms - Released version 3.1.15

Published by dg 9 months ago

  • added Blueprint, replaces LatteRenderer, DataClassGenerator, {formPrint}, {formClassPrint}
  • DateTimeControl: default date for 'time' is 0001-01-01
  • examples: updated bootstrap examples
  • Latte: sets Tag::$node
  • Latte: fixed rendering of empty <label> for CheckboxList/RadioList items
forms - Released version 3.1.14

Published by dg 12 months ago

  • added addDate(), addTime() & addDateTime(), addColor()
  • netteForms: min/max/range can compare strings
  • AVIF image support
  • tests: grunt replaced with karma
  • FormsExtension: added getCacheKey() to force refresh cache
forms - Released version 3.1.12

Published by dg about 1 year ago

  • support for PHP 8.3
  • added addFloat()
  • Container::getValues() respects validation scope #287
  • netteForms: bad numbers are checked at the beginning #289
  • netteForms: the 'number' element value is not available only on badInput error
  • netteForms: resets toggles when form is reset #306
  • Latte: split initialization and form rendering
  • netteForms: showModal uses <dialog> by default
  • removed fix for IE
  • Container: const Array changed to public #301
forms - Released version 3.1.11

Published by dg over 1 year ago

  • DefaultFormRenderer: new methods for rendering elements (#299)
  • added BackedEnum support (#282 #293)
  • UploadControl: added automatic rule MaxLength
  • UploadControl: refactoring
  • Latte: fixed escaping on button #298
  • constants are PascalCase
forms - Released version 3.1.10

Published by dg almost 2 years ago

  • FormNNameNode: $form is created before tag itself #291
  • latte: fixed parsing of {input} & {label} arguments
  • Latte: better error message when form is missing
  • Latte: {inputError ...} should have argument
  • getUnsafeValues() renamed to getUntrustedValues()
  • supports nette/utils 4
forms - Released version 3.1.8

Published by dg almost 2 years ago

  • support for PHP 8.2
  • Form::initialize() sets 'secure' flag nette/http#217
  • BaseControl, ControlGroup::getOption() parameter $default is silently deprecated
  • cs
forms - Released version 3.1.7

Published by dg over 2 years ago

  • support for Latte 3
  • FormMacros: optimized code
  • Form::addProtection() fixed error "Argument 3 must be of the type string or null, int given"
  • coding style
  • Runtime: fixed method name
  • improved Latte examples
forms - Released version 3.1.6

Published by dg almost 3 years ago

  • compatibility: fixed interfaces
  • added DataClassGenerator & tag {formClassPrint}
  • LatteRenderer: do not send cookie
  • Latte generator moved from Rutime to new class LatteRenderer
  • Latte Blueprint: used code highlighting
forms - Released version 3.1.5

Published by dg about 3 years ago

  • {formPrint} calls fireRenderEvents()
  • Container::getValues($obj) mapping to PHP 8 constructor
  • BaseControl: added addFilter()
  • refactoring
  • Container: catches infinite loop in getValue() #277
  • netteForms: improved netteFormsModal CSS for problematic browsers
  • netteForms: visible doc comment
  • improved error messages
  • Button: preserves prototype when caption is null #276
  • Revert "added FormFactory & DI service"
forms - Released version 3.1.4

Published by dg about 3 years ago

  • support for PHP 8.1
  • Button: allows change to <button> #273
  • Form::addGroup() loose type (#269)
  • Form: checks the existence of handlers
  • netteForms: uses <dialog> in Opera & mobile Chromium because it loses focus after alert() #275
  • netteForms: added Nette.showModal() method
forms - Released version 3.1.3

Published by dg over 3 years ago

  • Form::getValues() fixed when in validation scope is container
  • fixed compatibility with Symfony DebugClassLoader
forms - Released version 3.1.2

Published by dg over 3 years ago

  • added Container::getUnsafeValues(), onValidate does not throw warning [Closes #266]
  • fixed validation after 1592cf64 [Closes #268]
  • added Form::initialize() for standalone forms
  • added FormFactory & DI service
forms - Released version 3.1.1

Published by dg over 3 years ago

  • phpDoc: fixed event type hints [Closes #265]
  • Revert "Form::onValidate - values are passed only when form is valid"
  • Latte: added more comments /* line */
  • FormMacros: internal variables are prefixed $ʟ_
forms - Released version 3.1.0

Published by dg over 3 years ago

  • requires PHP 7.2

Features

  • Form: POST form checks Http\Request::isSameSite() as CSRF protection
  • Guess first parameter for event by type hint (#219)
  • Container::getValues($obj) to hydrate object

Changes

  • Form::getValues() triggers warning when form is not valid
  • Form::getValues() returns only controls in scope (BC break)
  • Form::onValidate - values are passed only when form is valid
  • Validator Form::URL autocompletes https:// instead of http:// (BC break)
  • Validator::validateEqual returns false if control value is empty array (BC break) [Closes #257]
  • Validator::formatMessage() added validator name to error message (#263)
  • breaks exporting rules to JS after non-static validator [Closes #259]
  • FormMacros: removed deprecated $_form
  • Container: addImage() renamed to addImageButton()
  • Checkbox: getSeparatorPrototype() renamed to getContainerPrototype()
  • removed deprecated stuff
forms - Released version 2.4.11

Published by dg almost 4 years ago

compatible with PHP 8.0