PHPackages                             webexmachina/contao-utils - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webexmachina/contao-utils

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

webexmachina/contao-utils
=========================

Utilities for Contao Open Source CMS

2.3.2(4mo ago)0976[4 issues](https://github.com/Web-Ex-Machina/contao-utils/issues)12LGPL-3.0+PHPPHP ^7.4 || ^8.0

Since May 23Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Web-Ex-Machina/contao-utils)[ Packagist](https://packagist.org/packages/webexmachina/contao-utils)[ Docs](https://www.webexmachina.fr/)[ RSS](/packages/webexmachina-contao-utils/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (39)Used By (12)

Extension "Utilities" for Contao Open Source CMS
================================================

[](#extension-utilities-for-contao-open-source-cms)

Functionalities
---------------

[](#functionalities)

- Provide some utilities for develop Contao extensions
- Class to execute commands
- Class to generate strings
- Class ScopeMatcher to check if request is backend/frontend
- Extends Contao Query Builder
- Extends Contao String Util
- Extends Contao Model abstract class
- Provide a service for encrypt and decrypt data with blowfish
- Provide a Twig Extension to add Twig features as functions and filters

Twig Filters
------------

[](#twig-filters)

- `preg_replace`: call the PHP function `preg_replace` with two string arguments: `pattern` and `replace`
- `html_entity_decode`: call the PHP function `html_entity_decode`

System requirements
-------------------

[](#system-requirements)

- Contao 4.\* (Manager Edition)

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

[](#installation)

Clone the extension from Packagist (Contao 4 - Manager Edition) or directly from Composer

Enable Encryption Service
-------------------------

[](#enable-encryption-service)

need to be explicitly enabled in your services.yml like this :

```
services:
    WEM\UtilsBundle\Classes\Encryption:
        arguments:
            $secret: '%env(APP_SECRET)%'
            $truncateKey: false
```

If you used the old contao service encryption, and you have some old data encrypted with, set truncateKey at true.

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

[](#documentation)

- [Change log](CHANGELOG.md)
- [Git repository](https://github.com/web-ex-machina/contao-utils)
- [Hooks](/docs/HOOKS.md)

License
-------

[](#license)

This extension is licensed under the terms of the Apache License 2.0. The full license text is available in the main folder.

Getting support
---------------

[](#getting-support)

Visit the [support page](https://github.com/web-ex-machina/contao-utils/issues) to submit an issue or just get in touch :)

Installing from Git
-------------------

[](#installing-from-git)

You can get the extension with this repository URL : [Github](https://github.com/web-ex-machina/contao-utils)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance77

Regular maintenance activity

Popularity16

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 53.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 ~57 days

Total

37

Last Release

124d ago

Major Versions

0.3.14 → 1.0.02023-08-14

1.x-dev → 2.0.02024-06-25

PHP version history (3 changes)0.1.0PHP ^5.6|^7.0

0.3.11PHP ^5.6|^7.0|^8.0

1.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f7629ded041973a2ef674c957eae3b16cc49d4f534ad799e1361ea16e7b8392?d=identicon)[webexmachina](/maintainers/webexmachina)

---

Top Contributors

[![LupusVII](https://avatars.githubusercontent.com/u/4595194?v=4)](https://github.com/LupusVII "LupusVII (68 commits)")[![ChipsVII](https://avatars.githubusercontent.com/u/93145825?v=4)](https://github.com/ChipsVII "ChipsVII (33 commits)")[![NodokaMurmevent](https://avatars.githubusercontent.com/u/16167605?v=4)](https://github.com/NodokaMurmevent "NodokaMurmevent (24 commits)")[![SeptimusVII](https://avatars.githubusercontent.com/u/28646786?v=4)](https://github.com/SeptimusVII "SeptimusVII (3 commits)")

---

Tags

developmentmodulecontaoutilitieswebexmachina

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/webexmachina-contao-utils/health.svg)

```
[![Health](https://phpackages.com/badges/webexmachina-contao-utils/health.svg)](https://phpackages.com/packages/webexmachina-contao-utils)
```

###  Alternatives

[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)

PHPackages © 2026

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