Logo of Routex

CoverallsBuild StatusLast UpdatedHex.pmHex.pm

Routex: Phoenix route localization and beyond....

Routex is a comprehensive, batteries included framework built on top of Phoenix, designed to streamline and empower your routing workflows. By simplifying route manipulation at compile time and enabling the use of custom route attributes during runtime, Routex provides the granular control needed to tackle the most complex routing challenges.

Its modern, extensible architecture allows for effortless creation of custom solutions, extending its functionality far beyond standard routing.

Localize Phoenix

For developers seeking robust Phoenix localization solutions, Routex excels. It offers a suite of extensions enabling internationalization (i18n) and localization (l10n), including but not limited to seamless support for translated (multilingual) URLs, locale preference detection at run time and support for multiple backends.

The included extension Localize Phoenix simplifies Phoenix localization by detecting already used localization packages (Cldr, Gettext or Fluent) and automatically generate routes based on their existing configuration for a seamless experience or using your manual configuration for powerful customization.

The extension includes an IANA based locale registry for robust locale validation and conversion to display names.

Forget any notion of difficult setup – localizing your Phoenix application with Routex is a breeze. Just copy the example configuration from our Localize Phoenix using Routex guide for an effortless start.

This documentation reflects the main branch. For the latest stable release, refer to HexDocs).

Benefits and Features:

Give it a try!

Online demo - have a look or get the code.

Installation and usage

Usage Guide - requirements and installation. instructions.

Documentation - from step-by-step guides till in-depth explanations.

Knowledge Base

To better understand how Routex integrates with Phoenix Router and where it fits into the broader ecosystem, take a look at our in-depth guides:

How Routex and Phoenix Router Work Together - Discover the mechanics behind the integration and the benefits of a unified routing system.

Routex compared to Phoenix Router and Cldr Routes - Understand the differences, strengths, and tradeoffs when deciding which routing solution best fits your needs.

Extensions

Routex comes equipped with a extensions that cater to common and advanced use cases in Phoenix applications. Each extension is designed to operate independently yet harmoniously with other extensions through the shared Routex.Attrs system. This flexibility allows you to tailor your routing system to your specific needs without resorting to extensive modifications or the burden of maintaining a fork.

Benefits:

Index

Specialized suites

Adapters for third-parties

Phoenix shims

Feature extensions

Showcases

Development

Contributions to Routex are highly appreciated! Whether it's a simple typo fix, a new extension or any other improvement.

Want to validate your idea? Use our discussion board