PHP Package: amphp/dns

Asynchronous DNS resolver library for PHP applications providing high-performance DNS resolution.

Current Version: 2.4.0
Last Updated: 2025-01-19
PHP Requirement: >=7.1
Dependencies: amphp/amp
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

amphp/dns is a PHP library that offers asynchronous DNS resolution capabilities, allowing developers to perform DNS queries efficiently in their applications. It leverages non-blocking I/O operations to improve performance and scalability. With amphp/dns, developers can easily integrate DNS resolution features into their asynchronous PHP applications, enhancing network communication and reducing latency.

🔗 View on GitHub

Download Latest Version: 2.4.0

Download Download v2.4.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/amphp/dns/2.4.0/autoload.php';

use Amp\Dns\Config;
use Amp\Dns\ResolutionException;
use Amp\Dns\Record;
use Amp\Dns\ResolutionResult;
use Amp\Dns\Resolver;


$obj = new Amp\Dns\Config();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.