1
0
mirror of https://github.com/danog/LibDNSJson.git synced 2024-11-26 20:04:38 +01:00
LibDNSJson/README.md

18 lines
908 B
Markdown
Raw Normal View History

2019-06-12 14:31:58 +02:00
# LibDNSJson
2019-06-12 14:35:49 +02:00
[![Build Status](https://img.shields.io/travis/danog/libdnsjson/master.svg?style=flat-square)](https://travis-ci.org/danog/libdnsjson)
![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
2019-06-12 14:31:58 +02:00
Encoder/decoder for [google's JSON DNS message format](https://developers.google.com/speed/public-dns/docs/dns-over-https) based on [libdns](https://github.com/DaveRandom/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.
2019-07-15 13:08:12 +02:00
## Installation
```
composer require danog/libdns-json
```