Lift v1.3.0

Application Foundation

This page is a navigation hub. Its original content has been split into focused pages — each topic now lives in the best place for it.


Controllers & routing

  • Routing — registering routes, groups, named routes, middleware, return-value normalisation.
  • Attribute Routing#[Get], #[Post], #[Group], #[Middleware] on controller methods.
  • Handler types — closures, [Class, 'method'], invokable classes.

HTTP

Views & sessions

  • Views — PHP templates, layouts, sections, partials, asset URLs, view caching.
  • Sessions — file, Redis, database, and array drivers; flash messages.

Error handling

  • Errors — exception hierarchy, onError, onException, HTTP exceptions.
  • Debug Toolbar — toolbar, exception pages, SQL/log wiring for local development.

Data

  • Database — Connection, QueryBuilder, Schema, Migrator, Model, SoftDeletes, pessimistic locks, advisory locks.
  • Validation — all rules, custom rules, FormRequest, ValidationException.
  • CollectionsCollection helper with full method reference.
  • CacheArrayCache, RedisCache with HMAC signing, PSR-16 adapter.
  • FilesystemLocalFilesystem, Storage facade, upload patterns.
  • RedisRedisClient, raw protocol client, testing fakes.

Security

  • Security Middleware — CORS, CSRF, Rate Limiting, Security Headers.
  • JWT — sign/verify, middleware, refresh-token pattern.
  • Cryptography — AES-256-GCM encryption, Argon2id hashing, HMAC signing.

Services

  • Queues — jobs, drivers, workers, retries, failed-job tracking.
  • Events — PSR-14 dispatcher, listeners, model lifecycle events.
  • Logging — handlers, formatters, PSR-3 integration.
  • Console — CLI commands, generators, the worker command.
  • Localization — translations, pluralization, locale switching.
  • JSON-RPC 2.0 — batch requests, method routing, error codes.
  • OpenAPI — generating specs from attributes and doc-blocks.
  • Async (Fibers) — cooperative concurrency with PHP 8.1 fibers.

Reference