1
0
mirror of https://github.com/danog/LibDNSJson.git synced 2024-11-29 20:09:06 +01:00
Go to file
2019-06-12 14:35:49 +02:00
lib First commit 2019-06-12 14:31:58 +02:00
test First commit 2019-06-12 14:31:58 +02:00
.gitignore First commit 2019-06-12 14:31:58 +02:00
.php_cs.dist First commit 2019-06-12 14:31:58 +02:00
.travis.yml First commit 2019-06-12 14:31:58 +02:00
appveyor.yml First commit 2019-06-12 14:31:58 +02:00
composer.json First commit 2019-06-12 14:31:58 +02:00
LICENSE MIT license 2019-06-12 14:34:42 +02:00
phpunit.xml.dist First commit 2019-06-12 14:31:58 +02:00
README.md Add badges 2019-06-12 14:35:49 +02:00

LibDNSJson

Build Status License

Encoder/decoder for google's JSON DNS message format based on libdns.

The API consists of a QueryEncoderFactory that creates QueryEncoder objects, that can encode libdns Message objects to a query string that can be used both with google's and cloudflare's DNS-over-HTTPS APIs (for cloudflare, using directly UDP wireformat with libdns's Encoder is recommended).

The JsonDecoderFactory creates JsonDecoder objects, that accept JSON strings and decode them back to Message objects.