relmeauth.php
relmeauth is an open source PHP library implementation of the RelMeAuth protocol.
Open Source
Why
You should use relmeauth.php if you would like to support RelMeAuth directly on your own site, and your site uses PHP.
How
See https://github.com/themattharris/RelMeAuth/ for instructions on how to use it.
IndieWeb Examples
Tantek
Tantek Γelik uses relmeauth.php on his site tantek.com for RelMeAuth powered sign-in.
Troubleshooting
Twitter returning 401 error
Make sure that you have a Callback URL set in your Twitter Apps settings (when signed into the Twitter account you are using for your RelMeAuth application, likely different than your personal Twitter account).
Not having one causes Twitter to believe your app is a Desktop Application and returns a 401 Unauthorized.
For more details for implementing the Twitter side of RelMeAuth: