amphp / Dns
Licence: mit
Async DNS resolution for PHP based on Amp.
Stars: ✭ 82
Projects that are alternatives of or similar to Dns
Socket
Non-blocking socket and TLS functionality for PHP based on Amp.
Stars: ✭ 122 (+48.78%)
Mutual labels: async, amphp
Amp
A non-blocking concurrency framework for PHP applications. 🐘
Stars: ✭ 3,457 (+4115.85%)
Mutual labels: async, amphp
Byte Stream
A non-blocking stream abstraction for PHP based on Amp.
Stars: ✭ 208 (+153.66%)
Mutual labels: async, amphp
Madelineproto
Async PHP client/server API for the telegram MTProto protocol
Stars: ✭ 1,776 (+2065.85%)
Mutual labels: async, amphp
Service Bus
PHP Service Bus (publish-subscribe pattern) implementation
Stars: ✭ 290 (+253.66%)
Mutual labels: async, amphp
Http Client
Async HTTP/1.1+2 client for PHP based on Amp.
Stars: ✭ 553 (+574.39%)
Mutual labels: async, amphp
Twisted
Event-driven networking engine written in Python.
Stars: ✭ 4,442 (+5317.07%)
Mutual labels: async, dns
Http Server
A non-blocking HTTP application server for PHP based on Amp.
Stars: ✭ 1,122 (+1268.29%)
Mutual labels: async, amphp
Acme
Async ACME library written in PHP based on the Amp concurrency framework.
Stars: ✭ 102 (+24.39%)
Mutual labels: async, amphp
Websocket Client
Async WebSocket client for PHP based on Amp.
Stars: ✭ 83 (+1.22%)
Mutual labels: async, amphp
Aiodnsbrute
Python 3.5+ DNS asynchronous brute force utility
Stars: ✭ 370 (+351.22%)
Mutual labels: async, dns
Postgres
Async Postgres client for PHP based on Amp.
Stars: ✭ 56 (-31.71%)
Mutual labels: async, amphp
Sync
Synchronization primitives for PHP based on Amp.
Stars: ✭ 67 (-18.29%)
Mutual labels: async, amphp
Dns Over Https
High performance DNS over HTTPS client & server
Stars: ✭ 1,189 (+1350%)
Mutual labels: dns
dns
amphp/dns
provides asynchronous DNS resolution for PHP based on Amp.
Installation
composer require amphp/dns
Example
<?php
require __DIR__ . '/examples/_bootstrap.php';
use Amp\Dns;
use Amp\Loop;
Loop::run(function () {
$githubIpv4 = yield Dns\resolve("github.com", Dns\Record::A);
pretty_print_records("github.com", $githubIpv4);
$googleIpv4 = Amp\Dns\resolve("google.com", Dns\Record::A);
$googleIpv6 = Amp\Dns\resolve("google.com", Dns\Record::AAAA);
$firstGoogleResult = yield Amp\Promise\first([$googleIpv4, $googleIpv6]);
pretty_print_records("google.com", $firstGoogleResult);
$combinedGoogleResult = yield Amp\Dns\resolve("google.com");
pretty_print_records("google.com", $combinedGoogleResult);
$googleMx = yield Amp\Dns\query("google.com", Amp\Dns\Record::MX);
pretty_print_records("google.com", $googleMx);
});
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].