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

API documentation


String manipulation functions.


  • string replace(string $search, string $replace, string $subject, array $whitelist, string $charset)

    Wrapper for PHP's str_replace that encodes the replaced values and provides the opportunity to allow string whitelists that shouldn't be encoded.

  • string encode(string $string, array $allowedHTML, string $charset)

    HTML-encodes output and allows whitelists of values that should be let through without encoding.

Nephtali namespaces