Download the PHP package auxmoney/avro-php without Composer

On this page you can find all versions of the php package auxmoney/avro-php. 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 avro-php

auxmoney/avro-php

A PHP library that provides schema-based Avro data serialization and deserialization.

Key features:

Installation

To install auxmoney/avro-php, you can use Composer:

Usage

Encoding/Decoding Data

Try out the example scripts:

Logical Types

It is possible to configure logical types in a few different ways:

Using Default Logical Types

There are built-in implementations for all logical types described in the AVRO specification, except for timestamp-nanos and local-timestamp-nanos, because PHP's DateTime doesn't have nanosecond precision.

To use the default logical types, simply create an AvroFactory without any options:

Overriding Logical Types

You can override default logical types or add custom ones by providing factory implementations:

Disabling Logical Types

To disable all logical type processing and treat them as their underlying primitive types:

Value Objects for Logical Types

Some logical types work with their respective value objects to provide type safety and better representation of the data:

The local-timestamp-* and timestamp-* types are serialized from/deserialized to DateTimeInterface.

Documentation

For more detailed documentation on usage, schema design, and advanced features like schema evolution, please refer to the official Avro documentation.

Contribution

Contributions are welcome! If you find a bug or want to suggest a new feature, feel free to open an issue or submit a pull request.

Development Setup

This project uses VS Code Dev Containers for development. This ensures a consistent development environment across all contributors.

Using VS Code Dev Container (Recommended)

  1. Install the Dev Containers extension in VS Code
  2. Open the project in VS Code
  3. When prompted, click "Reopen in Container" or use Ctrl+Shift+P → "Dev Containers: Reopen in Container"

The container includes:

Manual Docker Usage

You can also use the containers manually:

For more details, see .devcontainer/README.md.

License

This library is licensed under the Apache License 2.0.

Changelog

For the detailed changelog, please refer to the Releases page.


All versions of avro-php with dependencies

PHP Build Version
Package Version
Requires php-64bit Version >=8.2
ext-mbstring Version *
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 auxmoney/avro-php contains the following files

Loading the files please wait ...