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
- Store and Retrieve Cached Data
Store and reuse data with the file or Memcached driver. Read several entries, set expiration, and remove stale values.
- Build a CLI CRUD Interface for Blog Posts
List, read, create, update, and delete blog posts from the terminal with Luminova.
- Route CLI Commands to Luminova Controllers
Register command groups and handlers, capture arguments, and apply CLI middleware.
- Write and Read Cookies
Store a browser preference, read a cookie on a later request, and parse a Set-Cookie value.
- Connect to a Database and Run Queries
Open a database connection, run builder queries and statements, cache results, and manage connections.
- Encrypt and Decrypt Data
Encrypt and decrypt a value with Crypter, OpenSSL, or Sodium.
- Build HTML Form Inputs
Generate text fields, checkboxes, file inputs, selects, option groups, and datalists with the form input builder.
- Define and Test HTTP Routes
Connect URLs to controllers and closures, capture URI values, and return views or JSON.
- Run an HTTP Socket Server
Start the HTTP socket server and register handlers for local HTTP or WebSocket communication.
- Build and Run a Blog Command
Create a routable blog command and run it from the terminal.
- Send Firebase Push Notifications from Luminova
Build Firebase Cloud Messaging payloads for devices, topics, and topic conditions, including platform-specific options.
- Build a REST API for Blog Posts
Define API routes, prepare post models and database tables, and implement JSON CRUD handlers.
- Validate Form Input and Check CSRF Tokens
Validate submitted fields, return useful errors, and protect browser form submissions with CSRF tokens.
- Generating Sitemaps & Embedding Structured Data on Webpages
Configure sitemap generation and add structured data to page responses.
- Keep Users Signed In with Luminova Sessions
Configure a session manager and connect it to a model and login controller.
- Render Views and Responses
Render templates, return HTTP responses, and configure view caching, layout paths, and output options.
- Build XHTML and HTML Elements
Generate documents, links, lists, media, and tables with Luminova’s XHTML builder.