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

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

aplia/swark
===========

Collection of must have template operators for eZ publish legacy

v1.3.2(5y ago)0930GPL-2.0PHPPHP &gt;=5.4

Since Aug 7Pushed 5y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (21)Used By (0)

Swark
=====

[](#swark)

A collection of must have template operators and workflow events for eZ publish legacy.

The code is based on the Seeds Consulting version which was hosted on project.ez.no. It has been extended with new template operators and a simplified way to register new template operators, and has additionally been transformed into a proper Composer package.

[![Latest Stable Version](https://camo.githubusercontent.com/1a69cfdd0711006be11a9a861849befcfc4e233b73e657ff3b9e39d8887d15bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706c69612f737761726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aplia/swark)[![Minimum PHP Version](https://camo.githubusercontent.com/b52c83f3d45755ebcb1e6863ebb202ab192aaf773424369ffdeedae107f027ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

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

[](#installation)

Install with Composer:

```
composer require aplia/swark
```

Documentation
-------------

[](#documentation)

An overview of all the template operators and workflow events, as well as detailed instructions for creating new operators can be read at

Creating new operators
----------------------

[](#creating-new-operators)

The gist of creating a new template operator is registering it in `swark.ini` and then creating a PHP class which inherits from `SwarkOperator`.

More details can be found in the documentation.

For instance to expose `phpinfo` one would do:

`swark.ini`:

```
OperatorMap[phpinfo]=MyProject\PhpInfoOperator
```

`MyProject/PhpInfoOperator.php`:

```
