PHPackages                             lukecurtis93/avro-generate - 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. lukecurtis93/avro-generate

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lukecurtis93/avro-generate
==========================

Easily create Avro files from your PHP classes.

0.0.2(3y ago)04[3 PRs](https://github.com/lukecurtis93/avro-generate/pulls)MITPHPPHP ^8.1

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lukecurtis93/avro-generate)[ Packagist](https://packagist.org/packages/lukecurtis93/avro-generate)[ Docs](https://github.com/lukecurtis93/avro-generate)[ GitHub Sponsors](https://github.com/lukecurtis93)[ RSS](/packages/lukecurtis93-avro-generate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (6)Used By (0)

Avro Generate
=============

[](#avro-generate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/49024358ff35c13579e90bc22cbaa072404a08215f1354bc1946079dbe91f169/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756b6563757274697339332f6176726f2d67656e65726174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lukecurtis93/avro-generate)[![Tests](https://github.com/lukecurtis93/avro-generate/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/lukecurtis93/avro-generate/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/70607715b172d765a9d25c732014b985e3faf6aef2de26393f029c0b31ce68fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756b6563757274697339332f6176726f2d67656e65726174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lukecurtis93/avro-generate)

Avro Generate is a small PHP CLI Application to allow you generate Avro definitions from your classes.

To use this package, simply implement the `Avroable` interface and define your definitions as per the Flixtech package

```
use FlixTech\AvroSerializer\Objects\Schema\Generation\Annotations;
use LukeCurtis\AvroGenerate\Contracts\Avroable;

/**
 * @Annotations\AvroType("record")
 * @Annotations\AvroName("user")
 */
class User implements Avroable
{
        /**
         * @Annotations\AvroType("string")
         * @var string
         */
        private $firstName;
//
```

Then you can run

```
./vendor/bin/avro generate --output=./resources/avro

```

This will generate the Avro schemas for your Avroable classes.

### Coming Soon

[](#coming-soon)

- Specify directories or explicit files for generation.
- Upload these Avro files to a Schema Registry.
- Checking for namesapces to be compatible with Confluent Schema Registry and UI.
- Versioned schemas

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

[](#installation)

You can install the package via composer:

```
composer require lukecurtis93/avro-generate
```

Usage
-----

[](#usage)

If you want to use the underlying generator for your own needs you can simply import and use the class.

```
$generator = new LukeCurtis\DefaultAvroGenerator();
echo $generator->generate();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Luke Curtis](https://github.com/lukecurtis93)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.9% 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 ~0 days

Total

2

Last Release

1246d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6102b83459cffa6d84a1ac84e700cec63e00c6160785a2974cf5cc7b654e304c?d=identicon)[lukesimoncurtis](/maintainers/lukesimoncurtis)

---

Top Contributors

[![lukecurtis93](https://avatars.githubusercontent.com/u/26925537?v=4)](https://github.com/lukecurtis93 "lukecurtis93 (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

avroconfluentlaravelphpschema-registrylukecurtis93avro-generate

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lukecurtis93-avro-generate/health.svg)

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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