PHPackages                             erdmannfreunde/contao-license-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. erdmannfreunde/contao-license-bundle

ActiveContao-bundle[Authentication &amp; Authorization](/categories/authentication)

erdmannfreunde/contao-license-bundle
====================================

Zentrales Lizenz-Bundle für kommerzielle Contao-Erweiterungen von Erdmann &amp; Freunde. Verwaltet Lizenzkeys, prüft Major-Version-Bindung und steuert Pro-Features.

1.1.2(1mo ago)080proprietaryPHPPHP ^8.1

Since May 5Pushed 1mo agoCompare

[ Source](https://github.com/erdmannfreunde/contao-license-bundle)[ Packagist](https://packagist.org/packages/erdmannfreunde/contao-license-bundle)[ RSS](/packages/erdmannfreunde-contao-license-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (18)Versions (5)Used By (0)

Contao License Bundle
=====================

[](#contao-license-bundle)

Zentrales Lizenz-Bundle für kommerzielle Contao-Erweiterungen von Erdmann &amp; Freunde. Verwaltet Lizenzschlüssel, prüft Major-Version-Bindung und schaltet Pro-Features frei.

Konzept
-------

[](#konzept)

- **Major-Bindung**: Ein Schlüssel gilt für eine Major-Version (z.B. v1.x). Upgrades auf eine neue Major (v2.x) erfordern einen neuen Schlüssel.
- **Trial**: Trial-Schlüssel sind normale Schlüssel mit `state=trial` und Ablaufdatum. Sie werden manuell vom Maintainer erzeugt.
- **Graceful degradation**: Ist der Lizenzserver nicht erreichbar, gilt eine Karenzzeit von 7 Tagen.

Integration in ein Pro-Bundle
-----------------------------

[](#integration-in-ein-pro-bundle)

In der `config/services.yaml` des kommerziellen Bundles:

```
services:
  ErdmannFreunde\ContaoMailAutomationBundle\License\Registration:
    class: ErdmannFreunde\ContaoLicenseBundle\License\ProductRegistration
    arguments:
      $productKey: 'mail-automation'
      $productName: 'Contao Mail Automation Pro'
      $currentMajor: 1
      $vendorUrl: 'https://erdmann-freunde.de/mail-automation'
    tags:
      - { name: 'erdmannfreunde.license.product' }
```

### Programmatischer Check im Pro-Code

[](#programmatischer-check-im-pro-code)

```
public function __construct(private LicenseManager $licenses) {}

public function renderProSlider(): string
{
    if (!$this->licenses->isValid('mail-automation')) {
        return $this->renderUpgradeNotice();
    }
    return $this->renderActualSlider();
}
```

### Deklarativer Check über Attribute

[](#deklarativer-check-über-attribute)

Auf Controllern oder Action-Methoden:

```
use ErdmannFreunde\ContaoLicenseBundle\Attribute\RequiresLicense;

#[RequiresLicense('mail-automation')]
class ProEditorController
{
    #[Route('/contao/pro-editor/save', methods: ['POST'])]
    public function save(): Response { /* ... */ }
}
```

Das `LicenseCheckListener` wertet das Attribute auf `kernel.controller`-Events aus und antwortet bei fehlender oder ungültiger Lizenz mit HTTP 403 plus klarer Fehlermeldung. Trials lassen sich per `#[RequiresLicense('mail-automation', allowTrial: false)]` ausschließen.

Backend
-------

[](#backend)

Im Contao-Backend erscheint unter *System → Lizenzen* eine tabellarische Übersicht aller registrierten Produkte mit Spalten **Produkt · Lizenzschlüssel · Status · Gültig bis · Letzte Prüfung**. Pro Produkt wird ein Schlüssel hinterlegt; der Status wird vom Lizenzserver synchronisiert und gecacht (24 h).

CLI
---

[](#cli)

```
vendor/bin/contao-console erdmannfreunde:license:check

```

Prüft alle registrierten Produkte gegen den Server (Cache wird verworfen).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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 ~16 days

Total

4

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0c18094f552ca25ac29a9ef3763092f24b2be3158b2d047e644eef8a8a10282?d=identicon)[erdmannfreunde](/maintainers/erdmannfreunde)

---

Top Contributors

[![denniserdmann](https://avatars.githubusercontent.com/u/3773697?v=4)](https://github.com/denniserdmann "denniserdmann (4 commits)")

---

Tags

licensecontaocommercialtrial

### Embed Badge

![Health badge](/badges/erdmannfreunde-contao-license-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M600](/packages/shopware-core)[chameleon-system/chameleon-base

The Chameleon System core.

1028.7k5](/packages/chameleon-system-chameleon-base)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M77](/packages/contao-manager-bundle)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)

PHPackages © 2026

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