All Classes

Browse 51 classes & traits in this project. There are 28 source classes, 23 test classes, and 0 traits.

Note: As of Dec 23, 2023, only classes & traits are listed. interfaces & enums are not supported.

Source Classes (not tests)

  • CodeScrawlExt: No description...

  • Hook: Register and call hooks.

  • Redirect: DO NOT USE. It is better to just use PHP's built-in header() function. This addon may be removed in the future.

  • Error: DO NOT USE. An addon for displaying and logging errors, and redirecting in the process. This addon may be removed, and it may not even work right now.

  • Seo: Convenience class for turning SEO information like page title, description, image url, and others into correct tags in the <head>.

    Resources for needed seo data/
    https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started
    https://ogp.me/
    https://www.w3schools.com/tags/tag_meta.asp
    NOT USED https://schema.org

  • View: Single interface for accessing all views across a liaison instance. Views can be files or callables and accept array arguments.

  • Resources: Manages CSS & JS Files, prints tags in <head> and concatenates files together.

  • Autoload: DO NOT USE. While this class should work, composer is a better choice for autoloading.

  • ResourceSorter: Convenience class for sorting css & js files before they are concatenated together.

  • Http: Handles requests, processes routes, sends responses, and compiles content into a theme view.

  • Cache: Cache key=>value pairs with a max age to auto-expire. Each pair is stored in its own file.

  • Router: Routes /requests/ to files or callables based on provided static /patterns/ or dynamic /{patterns}/. Manages GET and POST requests.

  • StaticFile: Build headers for static files like .js or .css or image files

  • FancyClosure: Normalize callable usage & bind paramaters to a callable, like you can in javascript

  • ClassFinder: Find a fully qualified classname in a file. (or for multiple files in a directory)

  • Files: Utility class to work with files & directories

  • Hooks: A class to organize all hook names across the main package.

  • Package: No description...

  • Exception: No description...

  • Addon: No description...

  • Scrawl: Generates documentation listing:

    • Packages
    • Addons
    • Routes
    • Views
    • Configurable Options (and maybe listing configs that have been set)
  • Server:

  • FastFileRouter: No description...

  • Lia: No description...

  • Request: A simple object to represent a web request

  • View: A View, which passes properties to a template file and loads associated resources (.css/.js files). You must invoke __toString() (''.$view) or $view->content() or $view->resources() or nothing happens.

  • Response: Mutable object to represent a web response

  • Route: A simple object to hold route information for a matched route.

    Nothing documented here is enforced by this class. It's all passed TO it.
    If a different Routing component is used, it might not follow the currently documented usage in this class.

Traits

Test Classes