<nephtali>

A simple, flexible, fast, and security-focused PHP framework
Nephtali documentation

API documentation

n\constant

All Nephtali constants.

Constants

  • CACHE_FINAL

    Cache the final output provided by the page.

  • CACHE_AFTER_TEMPLATES

    Cache the output after all templates have been applied.

  • FILTER_INT

    Allow integers.

    Examples include:
    - 1
    - 65000

  • FILTER_DOUBLE

    Allow positive or negative numbers with decimal points.

    Examples include:
    - 2.5
    - 890.009
    - -23.9

  • FILTER_ALPHANUM

    Allow alphanumeric text.

    Examples include:
    - abc678
    - 55uugr

  • FILTER_VAR_NAME

    Allow characters typically used in variable names.

    Examples include:
    - frank_the_terminator
    - symbol78

  • FILTER_EMAIL

    Allow valid email addresses.

  • FILTER_URL

    Allow valid URL's.

    Examples include:
    - http://test.com
    - http://www.test.com
    - http://subdomain.test.com/index.php?var=value&var2=yes

  • FILTER_US_DATE

    Allow valid US dates of the format m/d/yyyy.

    Examples include:
    - 9/7/2008
    - 09/09/2009

  • FILTER_US_ZIP

    Allow valid US zip codes.

    Examples include:
    - 55555
    - 55555-5555

  • FILTER_US_PHONE

    Allow valid US phone numbers.

    Examples include:
    - 5555555555
    - 1-555-555-5555 (1 is optional)
    - 1(555)555-5555 (1 is optional)
    - 1 (555) 555-5555 (1 is optional)
    - 1 555 555 5555 (1 is optional)

  • FILTER_TEXT

    Allow a single line of text except for XML markup and danerous hackemes.

  • FILTER_TEXT_MULTILINE

    Allow multiple lines of text except for XML markup and dangerous hackemes.

  • FILTER_XML

    Allow all types of text except for dangerous hackemes.

  • FILTER_ALL

    Allow everything under the sun.

  • FILTER_CUSTOM

    Allow data that validates with custom regex (you must supply the regex in the opts array for the port.)

  • REGEX_INT

    Regex used for validating positive integers.

  • REGEX_DOUBLE

    Regex used for validating double numbers.

  • REGEX_ALPHANUM

    Regex used for validating alphanumeric data (a - z, 0 - 9, case insensitive.)

  • REGEX_VAR_NAME

    Regex used for validating variable names (a - z, 0 - 9, '_', '-', case insensitive.)

  • REGEX_US_PHONE

    Regex used for validating US phone numbers.

  • REGEX_US_ZIP

    Regex used for validating US Zip codes.

  • REGEX_TEXT

    Regex used for validating basic text, free of HTML special characters.

  • REGEX_TEXT_MULTILINE

    Regex used for validating basic multiline text, free of HTML special characters.

  • REGEX_XML

    Regex used for validating text that contains XML.

  • REGEX_FILE_NAME

    Regex used for file names, which allows letters, numbers, whitespace, '.', and the underscore.

  • REGEX_URL

    Regex used for URL's.

  • REGEX_EMAIL

    Regex used for email addresses.
    Same as that used by the html5 email input: http://www.w3.org/TR/html-markup/input.email.html

  • WHITELIST_A_TAG

    Whitelist regex used to allow links through automatic encoding.

  • WHITELIST_ALLOW_ALL

    Whitelist regex that allows everything to be passed through the databinding process without automatic encoding.

Nephtali namespaces