PHPackages                             nick-zh/php-avro-schema-generator - 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. nick-zh/php-avro-schema-generator

Abandoned → [php-kafka/php-avro-schema-generator](/?search=php-kafka%2Fphp-avro-schema-generator)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

nick-zh/php-avro-schema-generator
=================================

PHP avro schema generator for subschema

v0.3.1(5y ago)11.9kMITPHP

Since Aug 18Pushed 5y agoCompare

[ Source](https://github.com/nick-zh/php-avro-schema-generator)[ Packagist](https://packagist.org/packages/nick-zh/php-avro-schema-generator)[ RSS](/packages/nick-zh-php-avro-schema-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (8)Dependencies (8)Versions (10)Used By (0)

Deprecation Notice
==================

[](#deprecation-notice)

This package has been deprecated in favour of [php-kafka/php-avro-schema-generator](https://github.com/php-kafka/php-avro-schema-generator)

Avro schema generator for PHP
=============================

[](#avro-schema-generator-for-php)

[![Actions Status](https://github.com/nick-zh/php-avro-schema-generator/workflows/CI/badge.svg)](https://github.com/nick-zh/php-avro-schema-generator/workflows/CI/badge.svg)[![Maintainability](https://camo.githubusercontent.com/619bedec6a982edf933e0e8d27b7460d8caf7c68003abcb7c53b3fc5e24f8126/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39333765313463363362656230383838356337302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/nick-zh/php-avro-schema-generator/maintainability)[![Test Coverage](https://camo.githubusercontent.com/4e3e4277042791e41188c60f9f4efb7f69541581efc3e7de76693f23683a1914/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39333765313463363362656230383838356337302f746573745f636f766572616765)](https://codeclimate.com/github/nick-zh/php-avro-schema-generator/test_coverage)[![Latest Stable Version](https://camo.githubusercontent.com/40feaa018dae028fdcf7fe6b0330f149c255d64fd4f6ee4f6d6edbd11874cc41/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b2d7a682f7068702d6176726f2d736368656d612d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/nick-zh/php-avro-schema-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/2aac6a9d81e5455f345941ac575e4363b86007d88047f62a755ee6cdd51cd391/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b2d7a682f7068702d6176726f2d736368656d612d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/nick-zh/php-avro-schema-generator)

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

[](#installation)

```
composer require nick-zh/php-avro-schema-generator "^0.1.0"

```

Description
-----------

[](#description)

Since avro does not support external subschemas, this is just a small helper to unify your schemas and to create basic schemas from php classes (experimental!).

### Merging subschemas / schemas

[](#merging-subschemas--schemas)

Schema template directories: directories containing avsc template files (with subschema) Output directory: output directory for the unified schema files

#### Merge subschemas (code)

[](#merge-subschemas-code)

```
