{"id":18578345,"url":"https://github.com/daniesy/php-digger","last_synced_at":"2025-07-27T11:35:25.415Z","repository":{"id":56962015,"uuid":"201472096","full_name":"daniesy/php-digger","owner":"daniesy","description":"Fetch DNS Resource Records associated with a hostname","archived":false,"fork":false,"pushed_at":"2020-02-07T02:38:26.000Z","size":35,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T19:39:27.840Z","etag":null,"topics":["composer","dig","dns","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniesy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-09T13:24:49.000Z","updated_at":"2023-02-01T23:37:51.000Z","dependencies_parsed_at":"2022-08-21T09:20:50.193Z","dependency_job_id":null,"html_url":"https://github.com/daniesy/php-digger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniesy%2Fphp-digger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniesy%2Fphp-digger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniesy%2Fphp-digger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniesy%2Fphp-digger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniesy","download_url":"https://codeload.github.com/daniesy/php-digger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148247,"owners_count":21055548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","dig","dns","php"],"created_at":"2024-11-06T23:34:49.929Z","updated_at":"2025-04-10T10:31:09.640Z","avatar_url":"https://github.com/daniesy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DIGGER [![Build Status](https://travis-ci.org/daniesy/php-digger.svg?branch=master)](https://travis-ci.org/daniesy/php-digger)\n\nA simple way to fetch DNS Resource Records associated with a hostname.\n\n### How to\n\nUsing digger is easy as 1, 2, 3.\n\n\t\u003c?php\n\trequire 'vendor/autoload.php';\n\n\tuse Daniesy\\Digger;\n\n\t$records = (new Digger)-\u003egetRecords('ping-pong.dev', 'A');\n\tforeach($records as $record) {\n    \tvar_dump($record);\n\t}\n\t\n\tif($records-\u003ehas('127.0.0.1')) {\n\t\techo \"The dns record is set\";\n\t}\n\n### Installation\n\nYou can install `Digger` with composer by running the following command.\n\n`composer require daniesy/php-digger:dev-master`\n\n### Parameters\n\n- **host**\n   The host you want to fetch the DNS records from\n- **type**\n   The type of DNS Records you want to get. At the moment, only the following records are supported: `A`, `AAAA`, `CAA`, `CNAME`, `MX`, `NS`, `PTR`, `SOA`, `SRV`, `TXT`. I'll add more at a later point.\n- **timeout**\n   The timeout in seconds after which the call should fail. The default timeout is `5` seconds.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniesy%2Fphp-digger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniesy%2Fphp-digger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniesy%2Fphp-digger/lists"}