Skip to content

Releases: darkain/getvar

Version 2.9.0

28 Jun 18:41
Compare
Choose a tag to compare

Added more JSON support.
Fix issue with unset() not unsetting $_REQUEST.
Added $get->combine() (creates an array from KEYS from one field and VALUES from another).
Switched from isset() to array_key_exists().
Renamed from getvar.php.inc to getvar.inc.php.
[SPACE] conversion list now supports more Unicode characters.
Added $get->search() to simplify getting search terms.

Version 2.8.3

13 Oct 17:12
Compare
Choose a tag to compare

Added currentyNull() helper function

Parameter names may now have aliases. Example:

$get->int(['one', 'two', 'three']);

This will first check to see if 'one' was passed into the script, if not it will check for 'two'. It will continue to evaluate every name specified in the array until one of the names is found and return it's corresponding value. Just as before, if the names are not found, the default value is then returned.

Version 2.8.2

07 Sep 20:51
Compare
Choose a tag to compare

Removed legacy code

  • Some was for PHP Version < 5.4, this is not supported at all
  • Some was for integration with PUDL/Altaform, which is no longer used anywhere
  • Removed references to MD5, which is no longer used anywhere

UTF-8 cleaning should work better on more platforms now

Version 2.8.0

24 Apr 20:42
Compare
Choose a tag to compare

Updated to BSD 2-clause license

Version 2.7.1

17 Mar 18:43
Compare
Choose a tag to compare

Removed dependencies on mb_string and XML PHP libraries
Added intNull and floatNull functions
Added check for "true" string on various array functions

Version 2.7.0

01 Feb 19:14
Compare
Choose a tag to compare

added support for detecting application/json encoding, parsing that instead of $_POST
added ability to get full, raw, unmodified post data and query string
white space cleanup

Version 2.6.0

08 Dec 23:34
Compare
Choose a tag to compare

Fixed missing check for default flags in __invoke
Added strings 'null' and 'nil' to list of FALSE values for bool() function
Better support for _GETVAR_NULL flag
Added _GETVAR_NODOUBLE which converts double-spaces to a single space
Fixed minor compatibility issue with PHP

Version 2.5.0

26 Oct 17:14
Compare
Choose a tag to compare

Added sessionClear - pulls information from php's $_SESSION variable, then clears it out

Version 2.4.3

03 Oct 17:34
Compare
Choose a tag to compare

Fixed an issue with stringNull not returning NULL for empty input

Version 2.4.1

13 Sep 19:55
Compare
Choose a tag to compare

Security Extension: added password() function
password() function will unset the named item from $_GET, $_POST, and $_REQUEST
This is to help ensure passwords do not accidentally leak into logs

Fixed dependency issues with PUDL

Added support for ArrayAccess
you can now do: $get['form_item']

Added support for object __get
you can now do: $get->form_item