PHPackages                             mattiabasone/confluent-schema-registry-api - 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. mattiabasone/confluent-schema-registry-api

ActiveLibrary

mattiabasone/confluent-schema-registry-api
==========================================

A PHP 8.2+ library to consume the Confluent Schema Registry REST API.

9.0.0(3mo ago)01851MITPHPPHP ^8.2CI failing

Since Jan 12Pushed 2mo agoCompare

[ Source](https://github.com/mattiabasone/schema-registry-php-client)[ Packagist](https://packagist.org/packages/mattiabasone/confluent-schema-registry-api)[ RSS](/packages/mattiabasone-confluent-schema-registry-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (5)Used By (1)

Confluent Schema Registry PHP API
=================================

[](#confluent-schema-registry-php-api)

[![schema-registry-ci Actions Status](https://github.com/flix-tech/schema-registry-php-client/workflows/schema-registry-ci/badge.svg?branch=master)](https://github.com/flix-tech/schema-registry-php-client/actions)[![Maintainability](https://camo.githubusercontent.com/17c3b22bb961e2e222e88905c8f9d7ea97e222ed41d38b776ed0cd0690759cea/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65363264306335386262373230323065616633632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/flix-tech/schema-registry-php-client/maintainability)[![Test Coverage](https://camo.githubusercontent.com/ac2ef5b6e2206c18c9e76d1c0ebb3ce6dddbc60cbcdd21addfcdb713a84d98a4/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65363264306335386262373230323065616633632f746573745f636f766572616765)](https://codeclimate.com/github/flix-tech/schema-registry-php-client/test_coverage)[![Latest Stable Version](https://camo.githubusercontent.com/80f7f8d7498758a98083e83952828e2e54e0e808e3a262d76fc1a03a8dc2f0ee/68747470733a2f2f706f7365722e707567782e6f72672f666c69782d746563682f636f6e666c75656e742d736368656d612d72656769737472792d6170692f762f737461626c65)](https://packagist.org/packages/flix-tech/confluent-schema-registry-api)[![Total Downloads](https://camo.githubusercontent.com/1c12301e7871e0af9685b2a1803026b7381f8d9fc325edd92e6144dbdb658ffa/68747470733a2f2f706f7365722e707567782e6f72672f666c69782d746563682f636f6e666c75656e742d736368656d612d72656769737472792d6170692f646f776e6c6f616473)](https://packagist.org/packages/flix-tech/confluent-schema-registry-api)[![License](https://camo.githubusercontent.com/9c67d04f97fc5c9de21dec91603d674d932ee65c3a67738b0fc7b8122eecb818/68747470733a2f2f706f7365722e707567782e6f72672f666c69782d746563682f636f6e666c75656e742d736368656d612d72656769737472792d6170692f6c6963656e7365)](https://packagist.org/packages/flix-tech/confluent-schema-registry-api)

A PHP 8.2+ library to consume the Confluent Schema Registry REST API. It provides low level functions to create PSR-7 compliant requests that can be used as well as high level abstractions to ease developer experience.

#### Contents

[](#contents)

- [Requirements](#requirements)
    - [Hard Dependencies](#hard-dependencies)
    - [Optional Dependencies](#optional-dependencies)
- [Installation](#installation)
- [Compatibility](#compatibility)
- [Usage](#usage)
    - [Asynchronous API](#asynchronous-api)
    - [Synchronous API](#synchronous-api)
    - [Caching](#caching)
    - [Low Level API](#low-level-api)
- [Testing](#testing)
    - [Unit tests, Coding standards and static analysis](#unit-tests-coding-standards-and-static-analysis)
    - [Integration tests](#integration-tests)
- [Contributing](#contributing)

Requirements
------------

[](#requirements)

### Hard dependencies

[](#hard-dependencies)

DependencyVersionReason**`php`**~8.2Anything lower has reached EOL**`guzzlephp/guzzle`**~7.0Using `Request` to build PSR-7 `RequestInterface`**`beberlei/assert`**~2.7|~3.0The de-facto standard assertions library for PHP**`apache/avro`**dev-mainOfficial apache AVRO package### Optional dependencies

[](#optional-dependencies)

DependencyVersionReason**`psr/cache`**^1.13|^2.0If you want to use the `CacheItemPoolAdapter`**`psr/simple-cache`**^3.0If you want to use the `SimpleCacheAdapter`Installation
------------

[](#installation)

This library is installed via [`composer`](http://getcomposer.org).

```
composer require mattiabasone/confluent-schema-registry-api
```

> **NOTE**
>
> If you are still running on a version less than `5.0.3` we recommend updating it immediately since there was a critical bug with the exception handling.

Compatibility
-------------

[](#compatibility)

This library follows strict semantic versioning, so you can expect any minor and patch release to be compatible, while major version upgrades will have incompatibilities that will be released in the UPGRADE.md file.

Usage
-----

[](#usage)

### Asynchronous API

[](#asynchronous-api)

[Interface declaration](src/AsynchronousRegistry.php)

#### Example `PromisingRegistry`

[](#example-promisingregistry)

```
