Skip to content

Instantly share code, notes, and snippets.

@dogmatic69
Last active February 24, 2020 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogmatic69/4610386 to your computer and use it in GitHub Desktop.
Save dogmatic69/4610386 to your computer and use it in GitHub Desktop.
<?php
$users = json_decode(file_get_contents('https://api.github.com/repos/:user/:repo/stargazers'), true);
foreach ($users as $user) {
$user = json_decode(file_get_contents($user['url']), true);
if (!empty($user['email']) {
mail($user['email'], 'Can has mail', $message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment