PHPackages                             mittwald/mstudio-ext-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. [HTTP &amp; Networking](/categories/http)
4. /
5. mittwald/mstudio-ext-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

mittwald/mstudio-ext-bundle
===========================

Symfony bundle for receiving mittwald mStudio webhook calls and managing extension state

01PHPCI passing

Since Oct 21Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/mittwald/mstudio-ext-bundle)[ Packagist](https://packagist.org/packages/mittwald/mstudio-ext-bundle)[ RSS](/packages/mittwald-mstudio-ext-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

mittwald mStudio extension Symfony Bundle
=========================================

[](#mittwald-mstudio-extension-symfony-bundle)

This repository contains a Symfony Bundle for easily setting up a mittwald mStudio extension using a Symfony application.

Warning

This bundle is **not recommended for production usage, yet**. Use at your own peril.

Usage
-----

[](#usage)

```
$ composer require mittwald/mstudio-ext-bundle

```

Getting started
---------------

[](#getting-started)

### 1. Adding and running Doctrine migrations

[](#1-adding-and-running-doctrine-migrations)

This bundle ships a few additional Doctrine entities that you will need to run migrations for. Add the following line to your `config/packages/doctrine_migrations.yaml`:

```
# config/packages/doctrine_migrations.yaml
doctrine_migrations:
  migrations_paths:
    #
    'Mittwald\MStudio\DoctrineMigrations': '@MittwaldExtensionWebhookBundle/Migrations'
```

After that, run the additional migrations:

```
$ bin/console doctrine:migrations:migrate

```

### 2. Include routes

[](#2-include-routes)

The routes for the webhooks need to be included in your application's routing configuration:

```
# config/routes.yaml
mittwald_extension_webhook_controllers:
  resource:
    path: '@MittwaldExtensionWebhookBundle/src/Controller/'
    namespace: Mittwald\MStudio\Bundle\Controller
  type: attribute
  prefix: /
```

### 3. Configure encryption key

[](#3-configure-encryption-key)

Important

This step is important for making sure that your extension secrets are stored securely. Without this step, the webhooks will only throw exceptions. It's for your own safety. ;)

The safest way to configure the instance secret encryption key is using an environment variable. Place the following configuration in your `services.yaml` and make sure the respective environment variable is defined:

```
# config/services.yaml
parameters:
  mstudio_ext.instance_secret_key: '%env(MSTUDIO_EXTENSION_SECRET_KEY)%'
```

Optional integrations
---------------------

[](#optional-integrations)

### Implementing event handlers

[](#implementing-event-handlers)

This bundle emits [events](https://symfony.com/doc/current/event_dispatcher.html) whenever an extension instance is created or modified.

You may define event handlers for the following events:

- `Mittwald\MStudio\Bundle\Event\ExtensionAddedToContextEvent`
- `Mittwald\MStudio\Bundle\Event\ExtensionInstanceUpdatedEvent`
- `Mittwald\MStudio\Bundle\Event\ExtensionInstanceRemoveEvent`

Please note that the *Extension Secret* that is stored for the extension will only become valid *after* the webhook request was completed successfully -- so if you want to use the extension secret immediately after an extension is installed, you need to do it *asynchronously* after the webhook was processed. In this case, consider defining an event handler that re-emits these events as asynchronous messages.

### Enabling SSO login

[](#enabling-sso-login)

To enable the single-signon using the ATReK mechanism[1](#user-content-fn-atrek-5b3da03e1a35c8d9eda57d50d0bb1483), you need to enable an additional user provider and an additional authenticator.[2](#user-content-fn-security-5b3da03e1a35c8d9eda57d50d0bb1483)

```
# config/packages/security.yaml
security:
  providers:
    mstudio_user_provider:
      id: Mittwald\MStudio\Bundle\Security\UserProvider
  firewalls:
    main:
      provider: mstudio_user_provider
      custom_authenticators:
        - Mittwald\MStudio\Bundle\Security\TokenRetrievalKeyAuthenticator
        # Optional, if you want to directly accept mStudio API keys as authentication factor
        # (not recommended and not officially supported)
        # - Mittwald\MStudio\Bundle\Security\APITokenAuthenticator
```

### Configuring the redirect target after SSO login

[](#configuring-the-redirect-target-after-sso-login)

When using the single-signon, the built-in controller will redirect the user to a route of your choice. To configure the target route, set the `mstudio_ext.sso_redirect_route`parameter in your `services.yaml` file.

```
# config/services.yaml
parameters:
  mstudio_ext.sso_redirect_route: your_route_name
```

Footnotes
---------

1.  [↩](#user-content-fnref-atrek-5b3da03e1a35c8d9eda57d50d0bb1483)
2.  [↩](#user-content-fnref-security-5b3da03e1a35c8d9eda57d50d0bb1483)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance45

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f0cf4eb3d44bff50a8f8dd5a05062c98edaf6d078f16cfae2f41caeb1a5e72a?d=identicon)[mittwald-typo3](/maintainers/mittwald-typo3)

---

Top Contributors

[![martin-helmich](https://avatars.githubusercontent.com/u/2538958?v=4)](https://github.com/martin-helmich "martin-helmich (21 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/mittwald-mstudio-ext-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mittwald-mstudio-ext-bundle/health.svg)](https://phpackages.com/packages/mittwald-mstudio-ext-bundle)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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