Generate PHP classes from your Avro schema
This library allows to generate modern PHP classes from Avro Schemas.
This library is registered on packagist.org, allowing you to install it using Composer.
Run the following command to do so:
$ composer require jaumo/phavroc
Once installed, you may run the generator against a specific Avro Schema using:
$ ./vendor/bin/phavroc my_schema.avsc
or against a whole directory using:
$ ./vendor/bin/phavroc schemas/
It is possible to specify a common interface for all the generated class:
$ ./vendor/bin/phavroc --common-interface Com\\Acme\\MessageInterface schemas/
This is especially useful to easily typehint all the messages at once.
This library is released under the Apache-2.0 license (see LICENSE for more information).
Any contributions are very welcome, make sure to do the appropriate changes to the Behat scenarios as well.
You may execute the tests suite by running:
$ ./vendor/bin/behat