PHPackages                             aoepeople/aoe\_extendedfilter - 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. aoepeople/aoe\_extendedfilter

AbandonedArchivedMagento-module[Templating &amp; Views](/categories/templating)

aoepeople/aoe\_extendedfilter
=============================

Magento extensible template filter directive support

v3.0.0(10y ago)657041PHPPHP &gt;=5.4

Since Mar 24Pushed 10y ago39 watchersCompare

[ Source](https://github.com/AOEpeople/Aoe_ExtendedFilter)[ Packagist](https://packagist.org/packages/aoepeople/aoe_extendedfilter)[ RSS](/packages/aoepeople-aoe-extendedfilter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

[![AOE](aoe-logo.png)](http://www.aoe.com)

Aoe\_ExtendedFilter Magento Module
==================================

[](#aoe_extendedfilter-magento-module)

License
-------

[](#license)

[OSL v3.0](http://opensource.org/licenses/OSL-3.0)

Contributors
------------

[](#contributors)

- [Lee Saferite](https://github.com/LeeSaferite) (AOE)

Compatability
-------------

[](#compatability)

- Model Rewrites
    - core/email\_template\_filter
    - cms/template\_filter
    - widget/template\_filter
- Module Dependencies
    - Mage\_Core
    - Mage\_Cms
    - Mage\_Widget

Usage
-----

[](#usage)

This module extends the core, cms, and widget filter models to make adding new directives a simple process. After installation you can add new directives with a simple addition to the config.xml of your module and a new model class. The config.xml of this module includes two new directives, 'config' and 'translate', that are added using the new XML config.

```

                Aoe_ExtendedFilter/Directive_Translate
                Aoe_ExtendedFilter/Directive_Config

```

The element name for your directive is the name used to call the directive. NB: Directive names are currently limited to 10 characters and limited to a-z. The regex pattern used is `[a-z]{0,10}`.

```
...
{{translate ... }}

```

The new directive model class needs to implement the `Aoe_ExtendedFilter_Model_Directive_Interface` interface

```
class Aoe_ExtendedFilter_Model_Directive_Translate implements Aoe_ExtendedFilter_Model_Directive_Interface

```

Usage of the new directives is identical to the existing directives.

```
{{translate text="Hello World"}}
{{config path="general/store_information/phone"}}

```

Dev Notes
---------

[](#dev-notes)

The $params array passed to the process() method on a directive is the result of a preg\_match\_all call and as such the 0 index is the full matched text, 1 is the directive name, and 2 is everything else. The 2 index should be passed to the parameter parser in most, but not all, cases. This will result in key/value pairs of data that were passed as arguments to the directive. It will also resolve any template variables to their final value. So, given this directive in template:

```
{{translate text="Hello World"}}

```

Then the initial $params array passed to the process() method would be:

```
$params[0] === 'translate text="Hello World"';
$params[1] === 'translate';
$params[2] === ' text="Hello World"';

```

After parsing with the following code:

```
// Re-parse the third parameter with the tokenizer and discard original parameters
$params = $filter->getIncludeParameters($params[2]);

```

You will get:

```
$params['text'] === 'Hello World';

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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 ~129 days

Total

5

Last Release

3913d ago

Major Versions

v1.1.0 → v2.0.02014-12-31

v2.0.0 → v3.0.02015-08-24

PHP version history (2 changes)v2.0.0PHP &gt;=5.3

v3.0.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7c128588934775b07942f0a35a325d72cb06acb975f4527e20b4a20ded97d18?d=identicon)[fbrnc](/maintainers/fbrnc)

![](https://www.gravatar.com/avatar/960234235576bad43bcf26bd7618875f7aac66e5b86200a1339c648e55b8ad25?d=identicon)[LeeSaferite](/maintainers/LeeSaferite)

---

Top Contributors

[![LeeSaferite](https://avatars.githubusercontent.com/u/47386?v=4)](https://github.com/LeeSaferite "LeeSaferite (37 commits)")[![mdix](https://avatars.githubusercontent.com/u/1155015?v=4)](https://github.com/mdix "mdix (1 commits)")

---

Tags

magentotemplatefilterdirective

### Embed Badge

![Health badge](/badges/aoepeople-aoe-extendedfilter/health.svg)

```
[![Health](https://phpackages.com/badges/aoepeople-aoe-extendedfilter/health.svg)](https://phpackages.com/packages/aoepeople-aoe-extendedfilter)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

420137.3M46](/packages/rize-uri-template)[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38201.1k10](/packages/text-template)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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