flix-tech/avro-php

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

Maintainers

👁 flix-tech

Package info

github.com/flix-tech/avro-php

pkg:composer/flix-tech/avro-php

Statistics

Installs: 8 336 519

Dependents: 14

Suggesters: 0

Stars: 21

5.2.0 2026-01-27 15:09 UTC

Requires

  • php: ^8.1

Requires (Dev)

Suggests

  • ext-gmp: Large integer support for 32-bit platforms.
  • ext-snappy: Snappy support for Snappy codec (mainly Google).
  • ext-zlib: Zlib support for Deflate codec.

Provides

None

Conflicts

None

Replaces

None

Apache-2.0 8c040b4dc4bd9163176cf3d10ac898215d4063ca

This package is auto-updated.

Last update: 2026-05-27 15:57:25 UTC


README

A library for using Avro with PHP.

Requirements

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

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:

<?php
require_once('avro-php/avro.php');

If you're pulling from source, put lib/ in your include path and require lib/avro.php:

<?php
require_once('lib/avro.php');

Take a look in examples/ for usage.