PHPackages                             flix-tech/avro-php - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. flix-tech/avro-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

flix-tech/avro-php
==================

Avro schema encoder/decoder. Fork of rg/avro-php

5.2.0(3mo ago)217.5M↓13.6%21[4 PRs](https://github.com/flix-tech/avro-php/pulls)14Apache-2.0PHPPHP ^8.1CI passing

Since Jan 8Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/flix-tech/avro-php)[ Packagist](https://packagist.org/packages/flix-tech/avro-php)[ RSS](/packages/flix-tech-avro-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (22)Used By (14)

What the Avro PHP library is
============================

[](#what-the-avro-php-library-is)

A library for using [Avro](http://avro.apache.org/) with PHP.

Requirements
============

[](#requirements)

- PHP &gt;= 8.1
- On 32-bit platforms, the [GMP PHP extension](http://php.net/gmp)
- For testing, [PHPUnit](http://www.phpunit.de/)
- For Deflate codec, [Zlib](https://www.php.net/zlib)
- For Snappy codec, [Snappy](http://google.github.io/snappy/)

Both GMP and PHPUnit are often available via package management systems as `php5-gmp` and `phpunit`, respectively.

Getting started
===============

[](#getting-started)

Untar the avro-php distribution, untar it, and put it in your include path:

```
tar xjf avro-php.tar.bz2 # avro-php.tar.bz2 is likely avro-php-1.4.0.tar.bz2
cp avro-php /path/to/where/you/want/it

```

Require the avro.php file in your source, and you should be good to go:

```
