All Versions
15
Latest Version
Avg Release Cycle
77 days
Latest Release
1646 days ago

Changelog History
Page 1

  • v2.3.1 Changes

    April 20, 2017
    • ๐Ÿ“š (DOC) Update the documentation 128, 129
    • (FIX) PHP Notice when trying to sanitize a string to integer 132
    • (ADD) 'phpunit/phpunit' as require-dev dependency in composer.json .
    • (ADD) Added CHANGELOG.md file.
    • ๐Ÿšš (REMOVE) Removed CHANGES.md file.
  • v2.3.0 Changes

    October 03, 2016
    • (ADD) Implement JsonSerializable in the Failure class
    • ๐Ÿ“š (DOC) Update the documentation
    • ๐Ÿšš (FIX) Removed undefined but registered sanitizers from SanitizerLocator
  • v2.2.0 Changes

    March 23, 2016

    ๐Ÿš€ This release adds new validation and sanitizing rules:

    • lowerCase for all-lower-case values
    • upperCase for all-upper-case values
    • titleCase for title-cased values
    • lowerCaseFirst for values where the first character is lower-case
    • upperCaseFirst for values where the first character is upper-case
  • v2.1.0 Changes

    March 04, 2016

    ๐Ÿš€ This release adds an isNotBlank() validation specifier, and fixes a bug where sanitizing to() a rule on a missing field raised a notice.

  • v2.0.0 Changes

    February 20, 2016

    ๐Ÿš€ First stable release.

    • ๐Ÿ‘ (FIX) The Spec class now reports failures better when closures are used in HHVM.

    • โœ… (TST) Improved testing.

  • v2.0.0-beta3 Changes

    January 27, 2016

    ๐Ÿš€ Third beta release.

    • ๐Ÿšš (BRK) Due to new blank-checking in ValidateSpec::applyRule(), remove 'blank' validation rule, and add 'isBlank()' validation spec method.

    • 0๏ธโƒฃ (FIX) Filter arguments using arrays, resources, and objects (including closures) no longer cause errors when creating the default filter message.

    • (ADD) Validation now fails on missing (unset or null) fields.

    • ๐Ÿ“š (DOC) Update documentation.

  • v2.0.0-beta2 Changes

    October 13, 2015

    ๐Ÿš€ Second beta release.

    • ๐Ÿ‘ (ADD) Add UTF-8 support in Alpha, Alnum, Strlen*, and Word filters with help from @mivanov93.
      • All string-length filters are now multi-byte aware using either mbstring or iconv extensions.
      • In alnum and alpha rules, use unicode letters and digits instead of ctype.
      • In word rules, use unicode letters and digits instead of \w and \W.
    • ๐Ÿ‘ (ADD) More robust email validation based on is_email() from @dominicsayers, plus IDN support as suggested by @dg via the intl extension.
    • โšก๏ธ (TEST) Update Travis-CI config to use containers.
    • ๐Ÿ“š (DOCS) Update relevant documentation.
  • v2.0.0-beta1 Changes

    July 06, 2015

    ๐Ÿš€ First 2.0 beta release.

    • BREAK: Renamed class Filter to SubjectFilter.

    • BREAK: Removed method SubjectFilter::strict() and all "strict" behavior, as get_object_vars() is not guaranteed in some objects (e.g. magic get/set vs public properties)

    • BREAK: Replaced method SubjectFilter::getMessages() et al with getFailures(); failures are now reported as a FailureCollection instead of as an array of text messages.

    • ๐Ÿšš BREAK: Removed classes Rule\Validate\Ipv4 and Ipv6 in favor of allowing flags on Rule\Validate\Ip.

    • ๐Ÿšš BREAK: Removed class Rule\Validate\InTableColumn entirely, as it requires a PDO connection. This is better implemented as part of a group of database-related filters, rather than as a special case herein.

    • ๐Ÿšš BREAK: Moved namespace Rule\Locator to Locator.

    • BREAK: Renamed class Spec\AbstractSpec to Spec\Spec.

    • ๐Ÿšš BREAK: Removed method Spec\Spec::getFailureMode().

    • ๐Ÿšš BREAK: Moved constants from SubjectFilter to Spec\Spec.

    • ๐Ÿšš BREAK: Removed methods ValueFilter::assert() and setExceptionClass().

    • ADD: Class FilterFactory now takes two constructor params, $validate_factories and $sanitize_factories, to allow injection of rule factories at construction time.

    • โž• ADD: Class AbstractStaticFilter to allow users to create static value filters.

  • v2.0.0-alpha1 Changes

    July 02, 2015

    ๐Ÿš€ First 2.0 dev release; breaking changes are coming.

  • v1.1.0 Changes

    May 26, 2015
    • โž• Add Translator::set() method, to set custom messages.
    • ๐Ÿ“‡ Docblock and metadata corrections.