PHPackages                             heimrichhannot/contao-formhybrid-compatibility-bundle - 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. heimrichhannot/contao-formhybrid-compatibility-bundle

ActiveContao-bundle

heimrichhannot/contao-formhybrid-compatibility-bundle
=====================================================

A bundle bringing compatibility our contao 4 environment.

0.7.0(3y ago)01.4kLGPL-3.0-or-laterJavaScriptPHP ^7.4 || ^8.0

Since Dec 14Pushed 3y ago5 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-formhybrid-compatibility-bundle)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-formhybrid-compatibility-bundle)[ Docs](https://github.com/heimrichhannot/contao-formhybrid-compatibility-bundle)[ RSS](/packages/heimrichhannot-contao-formhybrid-compatibility-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (26)Used By (0)

Contao Formhybrid Compatibility Bundle
======================================

[](#contao-formhybrid-compatibility-bundle)

A bundle enhancing [Formhybrid](https://github.com/heimrichhannot/contao-formhybrid) compatibility with our Contao 4 environment.

Features
--------

[](#features)

- support for [Encore Bundle](https://github.com/heimrichhannot/contao-encore-bundle)
- replaces jquery code with native js code
- js code is automatically added to pages where forms are included (needs formhybrid version &gt;= 3.13)

> Not all js features ported yet

Currently ported js features:

- asynchronous form submit
- scroll to status message after submit
- submitOnChange

Current limitations:

- Only encore bundle is currently supported for assets

Setup
-----

[](#setup)

1. Add this bundle as dependency

    ```
    composer require heimrichhannot/contao-formhybrid-compatibility-bundle

    ```
2. Update your Encore bundles file and your compile your webpack dependencies
3. Check if you need polyfills for supporting IE and (non-chromium) Edge (or other annoying outdated browsers) (see [Polyfills](#polyfills) section)

Usage
-----

[](#usage)

### Styling when asynchronous form submit

[](#styling-when-asynchronous-form-submit)

A `submitting` class is added to the `form` element when doing an asynchronous form submit.

Develop
-------

[](#develop)

### JS Events

[](#js-events)

Following events are fired during lifecycle.

EventDescriptionformhybrid\_ajax\_startFired before the ajax call is execute . For example before an asynchronous form submit.formhybrid\_ajax\_completeFired after an ajax event completed. For example after an asynchronous form submit.### Polyfills

[](#polyfills)

For compatibility with IE and Edge browsers you need to polyfill following js functions:

FunctionPolyfillRequiredChildNode.replaceWith()YesCustomEventOptional, no finish event is firedNodeList.prototype.forEach()YesAdd these polyfills to your main project js entrypoint.

UPGRADE
-------

[](#upgrade)

### v0.6

[](#v06)

- Renamed namespace from `ContaoFormhybridCompatibilityBundle` to `FormhybridCompatibilityBundle`

### v0.4

[](#v04)

- Renamed `HeimrichHannotContaoFormhybridCompatibilityBundle` to `HeimrichHannotFormhybridCompatibilityBundle`.
- JS code is automatically added to forms. If you don't want this, uncheck active on `contao-formhybrid-compatibility-bundle` entry in your encore settings.

### v0.2

[](#v02)

- Async submit animation: Instead of adding animated dots to the submit button text when doing an asynchronous form submit, a `submitting` class is added to the form element.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~63 days

Total

23

Last Release

1313d ago

PHP version history (3 changes)0.1.0PHP ^7.1

0.5.3PHP ^7.1||^8.0

0.6.0PHP ^7.4 || ^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 (28 commits)")

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-formhybrid-compatibility-bundle/health.svg)

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

###  Alternatives

[api-platform/state

API Platform state interfaces

223.4M57](/packages/api-platform-state)

PHPackages © 2026

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