PhxTemplates - Launch Sale 50% Off! Phoenix Templates - Phoenix Framework Website Templates. SaaS, Portfolio & Blogs | Product Hunt

Phoenix 1.8 Released: What's New for Developers

Phoenix 1.8 Released: What’s New for Developers

Phoenix 1.8 has officially launched, bringing a host of enhancements that streamline development, bolster security, and improve user experience. Here’s a breakdown of the key features and updates:


🔐 Magic Link Authentication by Default

The phx.gen.auth generator now defaults to passwordless authentication using magic links. This approach simplifies the login process, reduces friction for users, and enhances security by eliminating password-related vulnerabilities. For those who prefer traditional email/password authentication, it remains available as an opt-in option via user settings.

Read more


🔒 Scoped Data Access for Enhanced Security

Phoenix 1.8 introduces “scopes,” a first-class pattern designed to enforce secure data access by default. Scopes encapsulate context-specific information—such as the current user or organization—and automatically thread this data through generated code. This ensures that queries and PubSub operations are appropriately filtered, reducing the risk of unauthorized data access.

Read more


🎨 TailwindCSS with daisyUI Integration

The framework now includes daisyUI, a plugin that adds a component and theming system to TailwindCSS. This integration allows developers to apply consistent styling across their applications with minimal configuration. New projects come with both light and dark themes, complete with a built-in toggle, enabling a modern and responsive design out of the box.

Read more


🌙 Dark Mode Support

Responding to community feedback, Phoenix 1.8 introduces native dark mode support. Applications now come with a built-in toggle to switch between light and dark themes, enhancing accessibility and user experience across various environments.

Read more


⚙️ Enhanced Code Generators

The phx.gen.* generators have been refined to produce cleaner and more maintainable code. These improvements help developers adhere to best practices and maintain consistency across their projects.

Read more


🚀 Requirements and Installation

Phoenix 1.8 requires Erlang/OTP 25 or higher. To get started, install the latest phx_new generator:

mix archive.install hex phx_new

For detailed installation instructions and to explore the new features, visit the official Phoenix blog.


Stay ahead in your development journey by leveraging the latest features in Phoenix 1.8. These updates not only enhance the developer experience but also ensure that your applications are secure, modern, and user-friendly.