Replace the URLs in the .php file with your domain name, success, and error pages.
Add this HTML to present a login form.
<form action="https://indieauth.com/auth" method="get">
<label for="indie_auth_url">Web Address:</label>
<input id="indie_auth_url" type="text" name="me" placeholder="yourdomain.com" />
<p><button type="submit">Sign In</button></p>
<input type="hidden" name="client_id" value="https://example.org/" />
<input type="hidden" name="redirect_uri" value="https://example.org/indieauth.php" />
</form>