<nephtali>

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

API documentation

n\url

URL functions, such as redirects, parsing, etc.

Functions

  • bool current_path(array $paths)

    Checks if the current url path includes any one of the path arguments.

    For example, if you wanted to check to see if the page was the admin directory of the site, the $paths argument would be $paths = array('/admin').

  • void redirect(string $url)

    Immediately redirects from the current page to the URL.

  • string get_current()

    Retrieve the current url.

Nephtali namespaces