mirror of
https://github.com/danog/LibDNSJson.git
synced 2024-11-26 20:04:38 +01:00
examples | ||
lib | ||
test | ||
.gitignore | ||
.php-cs-fixer.dist.php | ||
.travis.yml | ||
composer.json | ||
LICENSE | ||
phpunit.xml.dist | ||
psalm.xml | ||
README.md |
LibDNSJson
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.
Installation
composer require danog/libdns-json