API Reference Phoenix v1.7.1

modules

Modules

This is the documentation for the Phoenix project.

Defines a Phoenix Channel.

Conveniences for testing Phoenix channels.

A plug and module to handle automatic code reloading.

Conveniences for testing Phoenix endpoints and connection related helpers.

Controllers are used to group common functionality in the same (pluggable) module.

Defines the Phoenix.Digester.Compressor behaviour for implementing static file compressors.

Gzip compressor for Phoenix.Digester

Defines a Phoenix endpoint.

The Cowboy2 adapter for Phoenix.

Wraps an Endpoint, attempting to sync with Phoenix's code reloader if an exception is raising which indicates that we may be in the middle of a reload.

Provides shared flash access.

Instrumenter to handle logging of various instrumentation events.

Raised when a key is expected to be present in the request parameters, but is not.

Conveniences for inflecting and working with names in Phoenix.

Raised when one of the accept* headers is not accepted by the server.

A protocol that converts data structures into URL parameters.

Provides Presence tracking to processes and channels.

Defines a Phoenix router.

Exception raised when the URI is malformed on matching.

Exception raised when no route is found.

A socket implementation that multiplexes messages over channels.

Defines a message sent from pubsub to channels and vice-versa.

Raised when the socket message is invalid.

Defines a message dispatched over transport to channels and vice-versa.

Defines a reply sent from channels to transports.

A behaviour that serializes incoming and outgoing socket messages.

Outlines the Socket <-> Transport communication.

Tokens provide a way to generate and verify bearer tokens for use in Channels or API authentication.

Provides route generation with compile-time verification.

mix-tasks

Mix Tasks

Updates the Phoenix project generator locally.

Prints Phoenix tasks and their information.

Digests and compresses static files.

Removes old versions of compiled assets.

Lists all available Phoenix generators.

Generates authentication logic for a resource.

Generates a self-signed certificate for HTTPS testing.

Generates a Phoenix channel.

Generates a context with functions around an Ecto schema.

Generates an embedded Ecto schema for casting/validating data outside the DB.

Generates controller, HTML views, and context for an HTML resource.

Generates controller, JSON view, and context for a JSON resource.

Generates LiveView, templates, and context for a resource.

Generates a notifier that delivers emails by default.

Generates a Presence tracker.

Generates release files and optional Dockerfile for release-based deployments.

Generates an Ecto schema and migration.

Generates a secret and prints it to the terminal.

Generates a Phoenix socket handler.

Creates a new Phoenix project.

Creates a new Ecto project within an umbrella project.

Creates a new Phoenix web project within an umbrella project.

Prints all routes for the default or a given router. Can also locate the controller function behind a specified url.

Starts the application by configuring all endpoints servers to run.