PHPackages                             heimrichhannot/contao-haste\_plus - 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. heimrichhannot/contao-haste\_plus

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

heimrichhannot/contao-haste\_plus
=================================

An extension for the contao haste module.

1.16.4(1y ago)032.5k4[1 issues](https://github.com/heimrichhannot/contao-haste_plus/issues)[1 PRs](https://github.com/heimrichhannot/contao-haste_plus/pulls)20LGPL-3.0-or-laterPHPPHP ~7.0 || ^8.0

Since Aug 26Pushed 1y ago8 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-haste_plus)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-haste_plus)[ Docs](https://github.com/heimrichhannot/contao-haste_plus)[ RSS](/packages/heimrichhannot-contao-haste-plus/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (314)Used By (20)

> **Please note:**
>
> This bundle is deprecated and not actively maintained anymore!

Haste Plus
==========

[](#haste-plus)

Haste plus extends [codefog/contao-haste](https://packagist.org/packages/codefog/contao-haste) as a collection of tools and classes to ease working with Contao.

*Module Preview*

Features
--------

[](#features)

### Cache

[](#cache)

The PHP high-performance object caching system, [phpfastcache](https://github.com/PHPSocialNetwork/phpfastcache) is part of hast\_plus. Currently only File-Caching is supported, but Pull-Request are welcome.

#### Example : FileCache

[](#example--filecache)

```
// MyClass.php

public function getSelectOptions(array $arrNewsArchives)
{
	// select a unique key
	$strCacheKey = 'my_select_options' . implode('_', $arrNewsArchives);

	if(FileCache::getInstance()->isExisting($strCacheKey))
	{
		return FileCache::getInstance()->get($strCacheKey);
	}

	$arrItems = array();

	// heavy sql queries or http-requests (just an example)
	$objItems = \NewsModel::findPublishedByPids($arrNewsArchives);

	if($objItems === null)
	{
		return $arrItems;
	}

	$arrItems = $objItems->fetchEach('headline');

	FileCache::getInstance()->set($strCacheKey, $arrItems);

	return $arrItems;
}

```

### Security

[](#security)

Add security headers to http request (configurable in tl\_settings)

- IFRAME Clickjacking Protection: X-Frame-Options: SAMEORIGIN
- Allow Origins Check: Access-Control-Allow-Origins &amp; Access-Control-Allow-Headers

> These options don't work anymore with Contao 4! [Further Information](docs/Security/HttpResponce.md)

### Input/Widget rgxp

[](#inputwidget-rgxp)

The following regular expression can be used to validate widget input.

NameExampleDescriptioncustomDatecustomDate::d.mValidate custom date format against input.pricepriceValidate price input.posfloatposfloatValidate float numbers in input.maxlengthmaxlength::120Validate the user input without html elements against the input given length.### Utils

[](#utils)

The following Classes and Methods are helpers that ease the working with Contao.

ClassDescription[Files](docs/Util/Files.md)Contains helper function for working with files and filenames.[PaymentUtils](docs/Util/PaymentUtil.md)Contains helper functions for payment relevant use cases.[StringUtils](docs/Util/StringUtil.md)Contains helper function for working with strings.TypeNameMethodDescriptionUrladdScheme\\HeimrichHannot\\Haste\\Util\\Url::addScheme($strUrl, $strScheme)Add the given protocol/scheme (http://,https://,ftp://…) to the given url if not present.ArraysfilterByPrefixes\\HeimrichHannot\\Haste\\Util\\Arrays::filterByPrefixes($arrData, $arrayPrefixes)Filter an array by given prefixes and return the filtered array.ArraysgetListPositonCssClass\\HeimrichHannot\\Haste\\Util\\Arrays::getListPositonCssClass($key, $arrList, $blnReturnAsArray)Create the class names for an item within a array list### Google Maps

[](#google-maps)

If you want to add google maps with ease that are build from dynamic entities, and not withing dlh\_googlemaps backend module, use the following code.

```
# news_full.html5

```

Inserttags
----------

[](#inserttags)

TagArgumentsExampletrimsplit1st: the delimiter, 2nd: the value{{trimsplit::,::2,1}}encrypt1st: the value{{encrypt::my secret value}}Developer notes
---------------

[](#developer-notes)

- provide a minimum of 3 unit test for each test case of a util method

Notification Tokens
-------------------

[](#notification-tokens)

- Added `##form_submission_html_all##`, an equivalent to `##formsubmission##` but for html format

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community33

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50% 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 ~10 days

Recently: every ~83 days

Total

311

Last Release

627d ago

PHP version history (4 changes)1.6.20PHP ~5.6 || ^7.0

1.6.60PHP ~5.4 || ~7.0

1.15.0PHP ~5.4 || ~7.0 || ^8.0

1.16.0PHP ~7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (35 commits)")[![salteax](https://avatars.githubusercontent.com/u/46114448?v=4)](https://github.com/salteax "salteax (15 commits)")[![nafetagrats](https://avatars.githubusercontent.com/u/5796948?v=4)](https://github.com/nafetagrats "nafetagrats (10 commits)")[![ericges](https://avatars.githubusercontent.com/u/25957923?v=4)](https://github.com/ericges "ericges (4 commits)")[![vvohh](https://avatars.githubusercontent.com/u/75325799?v=4)](https://github.com/vvohh "vvohh (2 commits)")[![matzke](https://avatars.githubusercontent.com/u/192946?v=4)](https://github.com/matzke "matzke (1 commits)")[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (1 commits)")[![Defcon0](https://avatars.githubusercontent.com/u/1485098?v=4)](https://github.com/Defcon0 "Defcon0 (1 commits)")[![mirkogleibe](https://avatars.githubusercontent.com/u/850300?v=4)](https://github.com/mirkogleibe "mirkogleibe (1 commits)")

---

Tags

modulecontaoformdeveloper

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-haste-plus/health.svg)

```
[![Health](https://phpackages.com/badges/heimrichhannot-contao-haste-plus/health.svg)](https://phpackages.com/packages/heimrichhannot-contao-haste-plus)
```

###  Alternatives

[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3189.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)[terminal42/notification_center

Notification Center extension for Contao Open Source CMS

80413.7k101](/packages/terminal42-notification-center)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

135.2k1](/packages/markocupic-calendar-event-booking-bundle)[terminal42/contao-leads

Leads extension for Contao Open Source CMS; Store and manage form data with ease!

41178.3k11](/packages/terminal42-contao-leads)[terminal42/contao-mp_forms

An extension for Contao Open Source CMS to create multi steps forms using the form generator

2535.2k6](/packages/terminal42-contao-mp-forms)

PHPackages © 2026

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