PHPackages                             se7enxweb/swark - 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. se7enxweb/swark

ActiveEzpublish-legacy-extension[Templating &amp; Views](/categories/templating)

se7enxweb/swark
===============

eZ Publish extension which provides template operators to generate complex template logic simply. Provides many template operators and a couple of workflow events which are needed very often, yet missing in eZ Publish. Great for smart developers!

v1.0.2(2y ago)2436↓50%4GPL-2.0-or-laterPHPPHP &gt;=5.0.0

Since Jan 7Pushed 2mo agoCompare

[ Source](https://github.com/se7enxweb/swark)[ Packagist](https://packagist.org/packages/se7enxweb/swark)[ Docs](https://github.com/se7enxweb/swark)[ Fund](https://se7enx.com)[ Fund](https://www.paypal.me/7xweb)[ RSS](/packages/se7enxweb-swark/feed)WikiDiscussions master Synced 1mo ago

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

Swark
=====

[](#swark)

The Swark extension implements many template operators and a couple of workflow events which are needed very often, yet missing in eZ Publish.

Version
=======

[](#version)

The current version of Swark is 1.0.2

Last Major update: October 05, 2014

The master and 5.x branches are compatible with eZ Publish 5.x+

The 4.x branch is compatible with eZ Publish 4.x

The 3.x branch is compatible with eZ Publish 3.x

Copyright
=========

[](#copyright)

Swark is copyright 2008 Seeds Consulting AS and 1999 - 2015 Brookins Consulting

See: doc/COPYRIGHT for more information on the terms of the copyright and license

License
=======

[](#license)

Swark is licensed under the GNU General Public License.

The complete license agreement is included in the doc/LICENSE file.

Swark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License.

Swark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GNU GPL gives you the right to use, modify and redistribute Swark under certain conditions. The GNU GPL license is distributed with the software, see the file doc/LICENSE.

It is also available at

You should have received a copy of the GNU General Public License along with Swark in doc/LICENSE. If not, see .

Using Swark under the terms of the GNU GPL is free (as in freedom).

For more information or questions please contact

Requirements
============

[](#requirements)

The following requirements exists for using the Swark extension:

o eZ Publish version:

Make sure you use eZ Publish version 5.x (required) or higher.

o PHP version:

Make sure you have PHP 5.x or higher.

About
=====

[](#about)

The Swark extension implements many operators and a couple of workflow events needed very often, yet missing in eZ Publish.

The following operators are implemented in the current version:

- add\_view\_parameters
- array\_search
- arsort
- asort
- charset
- clear\_object\_cache
- cookie
- current\_layout
- current\_siteaccess
- debug\_attributes
- debug
- is\_post\_request
- json\_encode
- krsort
- ksort
- ltrim
- modify\_view\_parameter
- preg\_match
- preg\_replace
- range
- redirect
- remove\_array\_element
- return
- rsort
- rtrim
- serialize
- server
- set\_array\_element
- shortenw
- shuffle
- sort
- split\_by\_length
- strpos
- str\_replace
- strrpos
- substr
- unserialize
- uri\_path\_segment
- user\_id\_by\_login
- variable\_names

The following workflow events are implemented in the current version:

- autopriority
- defertocron

Check out the complete documentation of the extension at:

Additional documentation available in the doc directory.

Please post any bug reports, feature requests or any other feedback as an issue:

Troubleshooting
===============

[](#troubleshooting)

1. Read the FAQ
    ------------

    [](#read-the-faq)

    Some problems are more common than others. The most common ones are listed in the the doc/FAQ.
2. Support
    -------

    [](#support)

    If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system:

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance56

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.6% 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

Unknown

Total

1

Last Release

862d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2a5049c5b1e7a22c301a2472d09281be35f717da316873861c1a8ae785ada7a?d=identicon)[7x](/maintainers/7x)

---

Top Contributors

[![brookinsconsulting](https://avatars.githubusercontent.com/u/617031?v=4)](https://github.com/brookinsconsulting "brookinsconsulting (12 commits)")[![se7enxweb](https://avatars.githubusercontent.com/u/51429274?v=4)](https://github.com/se7enxweb "se7enxweb (5 commits)")

---

Tags

templateextensionoperatorez publisheZ Publish LegacyeZ Publish Platformtemplate operator

### Embed Badge

![Health badge](/badges/se7enxweb-swark/health.svg)

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

PHPackages © 2026

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