{"action":"created","comment":{"url":"https://api.github.com/repos/reactphp/dns/pulls/comments/45562973","id":45562973,"diff_hunk":"@@ -33,33 +33,50 @@ But there's more.\n You can cache results by configuring the resolver to use a `CachedExecutor`:\n \n ```php\n-    $loop = React\\EventLoop\\Factory::create();\n-    $factory = new React\\Dns\\Resolver\\Factory();\n-    $dns = $factory->createCached('8.8.8.8', $loop);\n+$loop = React\\EventLoop\\Factory::create();\n+$factory = new React\\Dns\\Resolver\\Factory();\n+$dns = $factory->createCached('8.8.8.8', $loop);\n+\n+$dns->resolve('igor.io')->then(function ($ip) {\n+    echo \"Host: $ip\\n\";\n+});\n \n-    $dns->resolve('igor.io')->then(function ($ip) {\n-        echo \"Host: $ip\\n\";\n-    });\n+...\n \n-    ...\n+$dns->resolve('igor.io')->then(function ($ip) {\n+    echo \"Host: $ip\\n\";\n+});\n \n-    $dns->resolve('igor.io')->then(function ($ip) {\n-        echo \"Host: $ip\\n\";\n-    });\n-    \n-    $loop->run();\n+$loop->run();\n ```\n \n If the first call returns before the second, only one query will be executed.\n The second result will be served from cache.\n \n-## Todo\n+## Install\n+\n+The recommended way to install this library is [through Composer](http://getcomposer.org).\n+[New to Composer?](http://getcomposer.org/doc/00-intro.md)\n+\n+This will install the latest supported version:\n+\n+```bash\n+$ composer require react/dns:~0.4.0","path":"README.md","position":70,"original_position":70,"commit_id":"6231ba83faf857221bc8959068e405716447d3fe","original_commit_id":"6231ba83faf857221bc8959068e405716447d3fe","user":{"login":"WyriHaximus","id":147145,"avatar_url":"https://avatars.githubusercontent.com/u/147145?v=3","gravatar_id":"","url":"https://api.github.com/users/WyriHaximus","html_url":"https://github.com/WyriHaximus","followers_url":"https://api.github.com/users/WyriHaximus/followers","following_url":"https://api.github.com/users/WyriHaximus/following{/other_user}","gists_url":"https://api.github.com/users/WyriHaximus/gists{/gist_id}","starred_url":"https://api.github.com/users/WyriHaximus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WyriHaximus/subscriptions","organizations_url":"https://api.github.com/users/WyriHaximus/orgs","repos_url":"https://api.github.com/users/WyriHaximus/repos","events_url":"https://api.github.com/users/WyriHaximus/events{/privacy}","received_events_url":"https://api.github.com/users/WyriHaximus/received_events","type":"User","site_admin":false},"body":"Personally I have a medium strong opinion about the right composer instructions. But just wanted to point out a maybe better way of doing it. The `latest supported version` works in favor of doing it this way to be honest, I'm good either way.","created_at":"2015-11-22T19:14:15Z","updated_at":"2015-11-22T19:14:15Z","html_url":"https://github.com/reactphp/dns/pull/33#discussion_r45562973","pull_request_url":"https://api.github.com/repos/reactphp/dns/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/reactphp/dns/pulls/comments/45562973"},"html":{"href":"https://github.com/reactphp/dns/pull/33#discussion_r45562973"},"pull_request":{"href":"https://api.github.com/repos/reactphp/dns/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/reactphp/dns/pulls/33","id":51448859,"html_url":"https://github.com/reactphp/dns/pull/33","diff_url":"https://github.com/reactphp/dns/pull/33.diff","patch_url":"https://github.com/reactphp/dns/pull/33.patch","issue_url":"https://api.github.com/repos/reactphp/dns/issues/33","number":33,"state":"open","locked":false,"title":"Update documentation","user":{"login":"clue","id":776829,"avatar_url":"https://avatars.githubusercontent.com/u/776829?v=3","gravatar_id":"","url":"https://api.github.com/users/clue","html_url":"https://github.com/clue","followers_url":"https://api.github.com/users/clue/followers","following_url":"https://api.github.com/users/clue/following{/other_user}","gists_url":"https://api.github.com/users/clue/gists{/gist_id}","starred_url":"https://api.github.com/users/clue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clue/subscriptions","organizations_url":"https://api.github.com/users/clue/orgs","repos_url":"https://api.github.com/users/clue/repos","events_url":"https://api.github.com/users/clue/events{/privacy}","received_events_url":"https://api.github.com/users/clue/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-21T20:00:42Z","updated_at":"2015-11-22T19:14:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"419ab9fd3e457b2f9c03677be3eeb55b6f92a446","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reactphp/dns/pulls/33/commits","review_comments_url":"https://api.github.com/repos/reactphp/dns/pulls/33/comments","review_comment_url":"https://api.github.com/repos/reactphp/dns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reactphp/dns/issues/33/comments","statuses_url":"https://api.github.com/repos/reactphp/dns/statuses/6231ba83faf857221bc8959068e405716447d3fe","head":{"label":"clue-labs:doc","ref":"doc","sha":"6231ba83faf857221bc8959068e405716447d3fe","user":{"login":"clue-labs","id":7551069,"avatar_url":"https://avatars.githubusercontent.com/u/7551069?v=3","gravatar_id":"","url":"https://api.github.com/users/clue-labs","html_url":"https://github.com/clue-labs","followers_url":"https://api.github.com/users/clue-labs/followers","following_url":"https://api.github.com/users/clue-labs/following{/other_user}","gists_url":"https://api.github.com/users/clue-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/clue-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clue-labs/subscriptions","organizations_url":"https://api.github.com/users/clue-labs/orgs","repos_url":"https://api.github.com/users/clue-labs/repos","events_url":"https://api.github.com/users/clue-labs/events{/privacy}","received_events_url":"https://api.github.com/users/clue-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":20581506,"name":"dns","full_name":"clue-labs/dns","owner":{"login":"clue-labs","id":7551069,"avatar_url":"https://avatars.githubusercontent.com/u/7551069?v=3","gravatar_id":"","url":"https://api.github.com/users/clue-labs","html_url":"https://github.com/clue-labs","followers_url":"https://api.github.com/users/clue-labs/followers","following_url":"https://api.github.com/users/clue-labs/following{/other_user}","gists_url":"https://api.github.com/users/clue-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/clue-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clue-labs/subscriptions","organizations_url":"https://api.github.com/users/clue-labs/orgs","repos_url":"https://api.github.com/users/clue-labs/repos","events_url":"https://api.github.com/users/clue-labs/events{/privacy}","received_events_url":"https://api.github.com/users/clue-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clue-labs/dns","description":"Asynchronous DNS resolver","fork":true,"url":"https://api.github.com/repos/clue-labs/dns","forks_url":"https://api.github.com/repos/clue-labs/dns/forks","keys_url":"https://api.github.com/repos/clue-labs/dns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clue-labs/dns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clue-labs/dns/teams","hooks_url":"https://api.github.com/repos/clue-labs/dns/hooks","issue_events_url":"https://api.github.com/repos/clue-labs/dns/issues/events{/number}","events_url":"https://api.github.com/repos/clue-labs/dns/events","assignees_url":"https://api.github.com/repos/clue-labs/dns/assignees{/user}","branches_url":"https://api.github.com/repos/clue-labs/dns/branches{/branch}","tags_url":"https://api.github.com/repos/clue-labs/dns/tags","blobs_url":"https://api.github.com/repos/clue-labs/dns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clue-labs/dns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clue-labs/dns/git/refs{/sha}","trees_url":"https://api.github.com/repos/clue-labs/dns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clue-labs/dns/statuses/{sha}","languages_url":"https://api.github.com/repos/clue-labs/dns/languages","stargazers_url":"https://api.github.com/repos/clue-labs/dns/stargazers","contributors_url":"https://api.github.com/repos/clue-labs/dns/contributors","subscribers_url":"https://api.github.com/repos/clue-labs/dns/subscribers","subscription_url":"https://api.github.com/repos/clue-labs/dns/subscription","commits_url":"https://api.github.com/repos/clue-labs/dns/commits{/sha}","git_commits_url":"https://api.github.com/repos/clue-labs/dns/git/commits{/sha}","comments_url":"https://api.github.com/repos/clue-labs/dns/comments{/number}","issue_comment_url":"https://api.github.com/repos/clue-labs/dns/issues/comments{/number}","contents_url":"https://api.github.com/repos/clue-labs/dns/contents/{+path}","compare_url":"https://api.github.com/repos/clue-labs/dns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clue-labs/dns/merges","archive_url":"https://api.github.com/repos/clue-labs/dns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clue-labs/dns/downloads","issues_url":"https://api.github.com/repos/clue-labs/dns/issues{/number}","pulls_url":"https://api.github.com/repos/clue-labs/dns/pulls{/number}","milestones_url":"https://api.github.com/repos/clue-labs/dns/milestones{/number}","notifications_url":"https://api.github.com/repos/clue-labs/dns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clue-labs/dns/labels{/name}","releases_url":"https://api.github.com/repos/clue-labs/dns/releases{/id}","created_at":"2014-06-06T23:57:21Z","updated_at":"2014-11-26T16:28:23Z","pushed_at":"2015-11-21T20:01:26Z","git_url":"git://github.com/clue-labs/dns.git","ssh_url":"git@github.com:clue-labs/dns.git","clone_url":"https://github.com/clue-labs/dns.git","svn_url":"https://github.com/clue-labs/dns","homepage":"","size":162,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"reactphp:master","ref":"master","sha":"ded1ec36faf703eb55b8d1c044c50a22569e1643","user":{"login":"reactphp","id":1696866,"avatar_url":"https://avatars.githubusercontent.com/u/1696866?v=3","gravatar_id":"","url":"https://api.github.com/users/reactphp","html_url":"https://github.com/reactphp","followers_url":"https://api.github.com/users/reactphp/followers","following_url":"https://api.github.com/users/reactphp/following{/other_user}","gists_url":"https://api.github.com/users/reactphp/gists{/gist_id}","starred_url":"https://api.github.com/users/reactphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactphp/subscriptions","organizations_url":"https://api.github.com/users/reactphp/orgs","repos_url":"https://api.github.com/users/reactphp/repos","events_url":"https://api.github.com/users/reactphp/events{/privacy}","received_events_url":"https://api.github.com/users/reactphp/received_events","type":"Organization","site_admin":false},"repo":{"id":5749054,"name":"dns","full_name":"reactphp/dns","owner":{"login":"reactphp","id":1696866,"avatar_url":"https://avatars.githubusercontent.com/u/1696866?v=3","gravatar_id":"","url":"https://api.github.com/users/reactphp","html_url":"https://github.com/reactphp","followers_url":"https://api.github.com/users/reactphp/followers","following_url":"https://api.github.com/users/reactphp/following{/other_user}","gists_url":"https://api.github.com/users/reactphp/gists{/gist_id}","starred_url":"https://api.github.com/users/reactphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactphp/subscriptions","organizations_url":"https://api.github.com/users/reactphp/orgs","repos_url":"https://api.github.com/users/reactphp/repos","events_url":"https://api.github.com/users/reactphp/events{/privacy}","received_events_url":"https://api.github.com/users/reactphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reactphp/dns","description":"Asynchronous DNS resolver","fork":false,"url":"https://api.github.com/repos/reactphp/dns","forks_url":"https://api.github.com/repos/reactphp/dns/forks","keys_url":"https://api.github.com/repos/reactphp/dns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactphp/dns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactphp/dns/teams","hooks_url":"https://api.github.com/repos/reactphp/dns/hooks","issue_events_url":"https://api.github.com/repos/reactphp/dns/issues/events{/number}","events_url":"https://api.github.com/repos/reactphp/dns/events","assignees_url":"https://api.github.com/repos/reactphp/dns/assignees{/user}","branches_url":"https://api.github.com/repos/reactphp/dns/branches{/branch}","tags_url":"https://api.github.com/repos/reactphp/dns/tags","blobs_url":"https://api.github.com/repos/reactphp/dns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactphp/dns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactphp/dns/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactphp/dns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactphp/dns/statuses/{sha}","languages_url":"https://api.github.com/repos/reactphp/dns/languages","stargazers_url":"https://api.github.com/repos/reactphp/dns/stargazers","contributors_url":"https://api.github.com/repos/reactphp/dns/contributors","subscribers_url":"https://api.github.com/repos/reactphp/dns/subscribers","subscription_url":"https://api.github.com/repos/reactphp/dns/subscription","commits_url":"https://api.github.com/repos/reactphp/dns/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactphp/dns/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactphp/dns/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactphp/dns/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactphp/dns/contents/{+path}","compare_url":"https://api.github.com/repos/reactphp/dns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactphp/dns/merges","archive_url":"https://api.github.com/repos/reactphp/dns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactphp/dns/downloads","issues_url":"https://api.github.com/repos/reactphp/dns/issues{/number}","pulls_url":"https://api.github.com/repos/reactphp/dns/pulls{/number}","milestones_url":"https://api.github.com/repos/reactphp/dns/milestones{/number}","notifications_url":"https://api.github.com/repos/reactphp/dns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactphp/dns/labels{/name}","releases_url":"https://api.github.com/repos/reactphp/dns/releases{/id}","created_at":"2012-09-10T12:21:27Z","updated_at":"2015-11-15T08:25:30Z","pushed_at":"2015-11-21T20:01:47Z","git_url":"git://github.com/reactphp/dns.git","ssh_url":"git@github.com:reactphp/dns.git","clone_url":"https://github.com/reactphp/dns.git","svn_url":"https://github.com/reactphp/dns","homepage":"","size":208,"stargazers_count":31,"watchers_count":31,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":22,"forks":24,"open_issues":22,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reactphp/dns/pulls/33"},"html":{"href":"https://github.com/reactphp/dns/pull/33"},"issue":{"href":"https://api.github.com/repos/reactphp/dns/issues/33"},"comments":{"href":"https://api.github.com/repos/reactphp/dns/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/reactphp/dns/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/reactphp/dns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reactphp/dns/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/reactphp/dns/statuses/6231ba83faf857221bc8959068e405716447d3fe"}}}}