flix-tech/avro-php
最新稳定版本:5.1.1
Composer 安装命令:
composer require flix-tech/avro-php
包简介
Avro schema encoder/decoder. Fork of rg/avro-php
README 文档
README
A library for using Avro with PHP.
Requirements
- PHP >= 8.1
- On 32-bit platforms, the GMP PHP extension
- For testing, PHPUnit
- For Deflate codec, Zlib
- For Snappy codec, Snappy
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.
统计信息
- 总下载量: 6.63M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 3
- 依赖项目数: 14
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-01-04