Luminova Framework

Implementation Examples

Follow practical Luminova examples for HTTP and CLI routing, REST APIs, templates, database queries, and caching. Build forms and documents, send push notifications, or run a local HTTP socket server.

Table of Contents

  1. Store and Retrieve Cached Data

    Store and reuse data with the file or Memcached driver. Read several entries, set expiration, and remove stale values.

  2. Build a CLI CRUD Interface for Blog Posts

    List, read, create, update, and delete blog posts from the terminal with Luminova.

  3. Route CLI Commands to Luminova Controllers

    Register command groups and handlers, capture arguments, and apply CLI middleware.

  4. Write and Read Cookies

    Store a browser preference, read a cookie on a later request, and parse a Set-Cookie value.

  5. Connect to a Database and Run Queries

    Open a database connection, run builder queries and statements, cache results, and manage connections.

  6. Encrypt and Decrypt Data

    Encrypt and decrypt a value with Crypter, OpenSSL, or Sodium.

  7. Build HTML Form Inputs

    Generate text fields, checkboxes, file inputs, selects, option groups, and datalists with the form input builder.

  8. Define and Test HTTP Routes

    Connect URLs to controllers and closures, capture URI values, and return views or JSON.

  9. Run an HTTP Socket Server

    Start the HTTP socket server and register handlers for local HTTP or WebSocket communication.

  10. Build and Run a Blog Command

    Create a routable blog command and run it from the terminal.

  11. Send Firebase Push Notifications from Luminova

    Build Firebase Cloud Messaging payloads for devices, topics, and topic conditions, including platform-specific options.

  12. Build a REST API for Blog Posts

    Define API routes, prepare post models and database tables, and implement JSON CRUD handlers.

  13. Validate Form Input and Check CSRF Tokens

    Validate submitted fields, return useful errors, and protect browser form submissions with CSRF tokens.

  14. Generating Sitemaps & Embedding Structured Data on Webpages

    Configure sitemap generation and add structured data to page responses.

  15. Keep Users Signed In with Luminova Sessions

    Configure a session manager and connect it to a model and login controller.

  16. Render Views and Responses

    Render templates, return HTTP responses, and configure view caching, layout paths, and output options.

  17. Build XHTML and HTML Elements

    Generate documents, links, lists, media, and tables with Luminova’s XHTML builder.