PHPackages                             thelia/smarty-redirection-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. thelia/smarty-redirection-module

ActiveThelia-module

thelia/smarty-redirection-module
================================

2.0.0(5y ago)019.4k↑113.2%2LGPL-3.0+PHP

Since Feb 19Pushed 4y ago6 watchersCompare

[ Source](https://github.com/thelia-modules/SmartyRedirection)[ Packagist](https://packagist.org/packages/thelia/smarty-redirection-module)[ RSS](/packages/thelia-smarty-redirection-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (2)

Smarty Redirection
==================

[](#smarty-redirection)

This module adds a smarty function to redirect the user directly from a template

Installation
------------

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is SmartyRedirection.
- Activate it in your thelia administration panel

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/smarty-redirection-module ~1.0.0

```

Usage
-----

[](#usage)

You can use the `{redirect }` function like `{url }`. Only one parameter is specific to this function: `status`.

If this parameter isn't given, its value is 302. Otherwise, you can set it to 301 to define a permanent redirection in a template.

Example
-------

[](#example)

```
{if ! $foo}
    {redirect path="/anywhere"}
{/if}
```

```
{if ! $foo}
    {redirect path="/anywhere" status=301}
{/if}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

2

Last Release

1902d ago

Major Versions

1.0.0 → 2.0.02021-03-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (4 commits)")[![lovenunu](https://avatars.githubusercontent.com/u/6106094?v=4)](https://github.com/lovenunu "lovenunu (3 commits)")

### Embed Badge

![Health badge](/badges/thelia-smarty-redirection-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-smarty-redirection-module/health.svg)](https://phpackages.com/packages/thelia-smarty-redirection-module)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
