PHPackages                             koco/avro-regy - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. koco/avro-regy

ActiveSymfony-bundle[Queues &amp; Workers](/categories/queues)

koco/avro-regy
==============

Symfony Messenger Avro Schema Registry Bundle

v1.2.0(3y ago)313.0k↓50%4[1 PRs](https://github.com/KonstantinCodes/avro-regy/pulls)MITPHPPHP ^7.4|8.\*

Since Sep 6Pushed 3y agoCompare

[ Source](https://github.com/KonstantinCodes/avro-regy)[ Packagist](https://packagist.org/packages/koco/avro-regy)[ RSS](/packages/koco-avro-regy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

avro-regy
=========

[](#avro-regy)

This bundle provides a simple way to integrate Symfony Messenger with the Confluent Schema Registry.

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

[](#installation)

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require koco/avro-regy
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

After adding the composer requirement, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
return [
    // ...
    Koco\AvroRegy\AvroRegyBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

Create `config/avro_regy.yaml` and configure similar to the following example:

```
avro_regy:
  base_uri: '%env(SCHEMA_REGISTRY_URL)%'
  file_naming_strategy: subject
  options:
    register_missing_schemas: true
    register_missing_subjects: true
  serializers:
    catalogue:
      schema_dir: '%kernel.project_dir%/src/Catalogue/Domain/Model/Event/Avro/'
    orders:
      schema_dir: '%kernel.project_dir%/src/Orders/Domain/Model/Event/Avro/'
```

Each serializer that you configure, will be available as it's own service. The service id is `avro_regy.serializer.`. In `config/messenger.yaml` it can be called like so:

```
framework:
    messenger:
        transports:
            catalogue:
                dsn: '%env(MESSENGER_TRANSPORT_CATALOGUE_KAFKA_DSN)%'
                serializer: avro_regy.serializer.catalogue
                options:
                    ...
```

Then, write your serializer like so:

```
namespace App\Catalogue\Infrastructure\Messenger\Serializer;

use App\Catalogue\Domain\Model\Event\ProductCreated;
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;

class ProductCreatedSerializer implements SerializerInterface
{
    public function decode(array $encodedEnvelope): Envelope
    {
        $record = $encodedEnvelope['body'];

        return new Envelope(new ProductCreated(
            $record['id'],
            $record['name'],
            $record['description'],
        ));
    }

    public function encode(Envelope $envelope): array
    {
        /** @var ProductCreated $event */
        $event = $envelope->getMessage();

        return [
            'key' => $event->getId(),
            'headers' => [],
            'body' => [
                'id' => $event->getId(),
                'name' => $event->getName(),
                'description' => $event->getDescription(),
            ],
        ];
    }
}
```

And tag it:

```
App\Catalogue\Infrastructure\Messenger\Serializer\ProductCreatedSerializer:
  tags:
    - {
      name: 'avro_regy.serializer.catalogue',
      qualified_name: 'com.Example.Catalogue.ProductCreated',
      class_name: 'App\Catalogue\Domain\Model\Event\ProductCreated',
      key_subject: 'catalogue.product_created-key',
      value_subject: 'catalogue.product_created-value'
    }
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~208 days

Total

3

Last Release

1299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dff5b9dd3ae8e14b488aea55aae86e87b13742519fe1a19e240ab36549987bc?d=identicon)[koco](/maintainers/koco)

---

Top Contributors

[![KonstantinCodes](https://avatars.githubusercontent.com/u/844484?v=4)](https://github.com/KonstantinCodes "KonstantinCodes (11 commits)")[![BeyerJC](https://avatars.githubusercontent.com/u/34127121?v=4)](https://github.com/BeyerJC "BeyerJC (2 commits)")

---

Tags

symfonybundlequeuetransportMessengerkafka

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/koco-avro-regy/health.svg)

```
[![Health](https://phpackages.com/badges/koco-avro-regy/health.svg)](https://phpackages.com/packages/koco-avro-regy)
```

###  Alternatives

[koco/messenger-kafka

Symfony Messenger Kafka Transport

931.1M1](/packages/koco-messenger-kafka)[jwage/phpamqplib-messenger

Symfony messenger transport for the php-amqplib/php-amqplib library.

84149.7k1](/packages/jwage-phpamqplib-messenger)[prooph/event-store-symfony-bundle

109253.5k8](/packages/prooph-event-store-symfony-bundle)

PHPackages © 2026

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