flix-tech/avro-serde-php
PHP library for serializing/deserializing Apache Avro with Schema Registry support. Built for Kafka-style messaging, it handles Avro binary encoding, schema resolution, and compatibility, providing a straightforward SerDe layer you can use in your own producers/consumers.
Serializer component, reducing boilerplate for frameworks already using it. For non-Symfony projects, the standalone AvroSerializer provides flexibility.json_encode, msgpack) for critical paths.symfony/serializer (v6.3+), ext-json, ext-simplexml.symfony/serializer versions (e.g., if using v5.x). Test with composer why-not or platform-check.avro-tools CLI).Serializer may limit portability. Evaluate if standalone AvroSerializer meets needs.Serializer already in use? If not, what’s the cost to adopt it?symfony/serializer or PHP extensions?avro-tools, custom CLI) for schema management?Serializer).symfony/serializer:^6.3 is compatible with your version (check Symfony docs).ext-json and ext-simplexml are enabled (required for schema parsing).composer require flix-tech/avro-serde-php.AvroEncoder/AvroDecoder in Symfony’s serializer or use standalone AvroSerializer.confluent-php-client) for dynamic schemas.flix-tech/avro-serde-php for PHP 8.2+ compatibility.Serializer component.avro-tools) for ad-hoc inspection.Serializer and Avro’s integration points.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Schema mismatch (producer/consumer) | Data corruption or runtime errors | Use schema registry + backward-compatible schemas |
| Binary data in logs/metrics | Debugging complexity | Hex-encode Avro in logs; add custom decoders |
| PHP 8.1+ dependency blocker | Deployment delays | Upgrade PHP or use polyfills |
| Avro library bugs | Undefined behavior | Fork/curate until upstream fixes |
| High schema validation latency | Increased API response times | Cache schemas; optimize complex types |
How can I help you explore Laravel packages today?