My goal is to retrieve the OpenID identity provider for a given e-mail address, and so I'm looking for a WebFinger library written in PHP. Unfortunately I fail to find a suitable one.
The lib should be PEAR-installable and be usable standalone, or at least with only a few dependencies.
Any recommendations?
What I've found so far:
- PSX Framework is a quite big framework that offers only one PEAR compatible package that contains everything. Webfinger, Yadis, Logging, Session etc - too much. Also no docblocks.
- find by email's webfinger.php is only a file with a bunch of functions that don't support OpenID discovery. No unit tests, not usable standalone.
- http://status.net/ has a Discovery class in
lib/discovery.php
that supports Webfinger. Not PEAR-installable, not standalone. - https://github.com/walkah/discovery-php - standalone library. Not PEAR-installable, doesn't support the full spec (e.g. no HTTPS-first fetching)
- SocialIgniter's WebFinger implementation: https://github.com/socialigniter/socialigniter/blob/master/application/libraries/Webfinger.php - does not fetch HTTPS resources.
I've began implementing it myself since there doesn't seem to be a good existing libary
The XML_XRD PEAR package is an implementation of XRD, which gets me 80% to WebFinger support. See the code.
I also wrote the Net_WebFinger package.