Download the PHP package mateusjunges/confluent-schema-registry-api without Composer

On this page you can find all versions of the php package mateusjunges/confluent-schema-registry-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package confluent-schema-registry-api

Confluent Schema Registry PHP API

schema-registry-ci Actions Status Maintainability Test Coverage Latest Stable Version Total Downloads License

A PHP 7.4+ 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

Requirements

Hard dependencies

Dependency Version Reason
php ~7.4 Anything lower has reached EOL
guzzlephp/guzzle ~7.0 Using Request to build PSR-7 RequestInterface
beberlei/assert ~2.7|~3.0 The de-facto standard assertions library for PHP
flix-tech/avro-php ^4.1 Maintained fork of the only Avro PHP implementation: rg/avro-php

Optional dependencies

Dependency Version Reason
doctrine/cache ~1.3 If you want to use the DoctrineCacheAdapter
psr/cache ^1.0 If you want to use the CacheItemPoolAdapter
psr/simple-cache ^1.0 If you want to use the SimpleCacheAdapter

Installation

This library is installed via composer.

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

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

Asynchronous API

Interface declaration

Example PromisingRegistry

Synchronous API

Interface declaration

Example BlockingRegistry

Caching

There is a CachedRegistry that accepts a CacheAdapter together with a Registry. It supports both async and sync APIs.

NOTE:

From version 4.x of this library the API for the CacheAdapterInterface has been changed in order to allow caching of schema ids by hash of a given schema.

Example

Low Level API

There is a low-level API that provides simple functions that return PSR-7 request objects for the different endpoints of the registry. See Requests/Functions for more information.

There are also requests to use the new DELETE API of the schema registry.

Testing

This library uses a Makefile to run the test suite and requires docker.

You can set the default variables by copying variables.mk.dist to variables.mk and change them to your liking.

Build the local docker image

Unit tests, Coding standards and static analysis

Integration tests

This library uses a docker-compose configuration to fire up a schema registry for integration testing, hence docker-compose from version 1.18.x is required to run those tests.

The platform can be controlled with the following environment variables
Building the confluent platform with a specific version and run the integration tests

Contributing

In order to contribute to this library, follow this workflow:


All versions of confluent-schema-registry-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ^7.0
guzzlehttp/promises Version ^2.0
guzzlehttp/psr7 Version ^1.7|^2.1
beberlei/assert Version ~2.7|~3.0
flix-tech/avro-php Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mateusjunges/confluent-schema-registry-api contains the following files

Loading the files please wait ....