1
0
mirror of https://github.com/danog/LibDNSJson.git synced 2024-11-26 20:04:38 +01:00
Go to file
2022-12-05 22:13:49 +01:00
examples Add empty examples 2019-06-12 14:39:17 +02:00
lib Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
test Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
.gitignore Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
.php-cs-fixer.dist.php Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
.travis.yml Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
composer.json Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
LICENSE MIT license 2019-06-12 14:34:42 +02:00
phpunit.xml.dist Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
psalm.xml Switch to PHP 8.1 2022-12-05 22:13:49 +01:00
README.md Add installation instructions 2019-07-15 13:08:12 +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.

Installation

composer require danog/libdns-json