PHPackages                             aplia/redirectoperators - 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. [Templating &amp; Views](/categories/templating)
4. /
5. aplia/redirectoperators

Abandoned → [aplia/swark](/?search=aplia%2Fswark)Ezpublish-legacy-extension[Templating &amp; Views](/categories/templating)

aplia/redirectoperators
=======================

eZ publish legacy template operators for performing URL redirect from within a template

v1.0.1(6y ago)011GPL-2.0PHPPHP &gt;=5.3

Since Feb 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Aplia/ezp-redirectoperators)[ Packagist](https://packagist.org/packages/aplia/redirectoperators)[ Docs](https://github.com/Aplia/redirectoperators)[ RSS](/packages/aplia-redirectoperators/feed)WikiDiscussions master Synced 2d ago

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

Deprecated
==========

[](#deprecated)

This package is deprecated and can be replaced by using the `redirect` operator from composer package [Swark](https://github.com/Aplia/swark) instead.

ie. `{redirectrelative( '' )}` becomes `{redirect( '', 301 )}` and `{redirectabsolute( '' )}` becomes `{redirect( '', 301, 'abs' )}`.

Redirectoperators
=================

[](#redirectoperators)

eZ publish legacy template operators for performing URL redirect from within a template. The operators will send an HTTP header 301.

- `redirectabsolute`
- `redirectrelative`

[![Latest Stable Version](https://camo.githubusercontent.com/1ad5f6f08d12b90bb54726d6cf2ecbb29b34f2f4157f83e14df5c6cc5ed82e96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706c69612f72656469726563746f70657261746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aplia/redirectoperators)[![Minimum PHP Version](https://camo.githubusercontent.com/b3f29eb7882d2bf523390e9982827e9d2d3a4f74266ca923b512e5d02b9e4011/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

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

[](#installation)

Install with Composer:

```
composer require aplia/redirectoperators

```

Usage
-----

[](#usage)

From within a template, write:

```
{redirectrelative( '' )}

```

for instance:

```
{redirectrelative( '/path/to/file.php' )}

```

or

```
{redirectabsolute( '' )}

```

for instance:

```
{redirectabsolute( '' )}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~335 days

Total

2

Last Release

2319d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/250c0249ebb7ec2fc9e3987323829740e5f255a65b450a7b94cd9f6da2e33b75?d=identicon)[aplia](/maintainers/aplia)

---

Top Contributors

[![am0s](https://avatars.githubusercontent.com/u/394461?v=4)](https://github.com/am0s "am0s (5 commits)")[![gbentley](https://avatars.githubusercontent.com/u/1660361?v=4)](https://github.com/gbentley "gbentley (2 commits)")[![ThorFjelldalen](https://avatars.githubusercontent.com/u/25323993?v=4)](https://github.com/ThorFjelldalen "ThorFjelldalen (1 commits)")

---

Tags

redirectoperatorezextension

### Embed Badge

![Health badge](/badges/aplia-redirectoperators/health.svg)

```
[![Health](https://phpackages.com/badges/aplia-redirectoperators/health.svg)](https://phpackages.com/packages/aplia-redirectoperators)
```

###  Alternatives

[nystudio107/craft-emptycoalesce

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.

28143.7k3](/packages/nystudio107-craft-emptycoalesce)

PHPackages © 2026

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