oauthclient-php is a PHP client forExtension:OAuth.
To use it inside your application, simply runcomposer require mediawiki/oauthclient, or add a dependency in yourcomposer.json.(You may need toinstall Composer first.)If you haven't already, you'll need to includeinclude_once("./vendor/autoload.php"); in your PHP script to include your composer libraries.
If you prefer using git, usegit clonehttps://gerrit.wikimedia.org/r/mediawiki/oauthclient-php.git, and autoload the library however you wish to.
If you wish to develop and contribute on the library, seedeveloper account for gaining access to our code review system.
SeeREADME.
The code was originally published athttps://github.com/Stype/mwoauth-php (which incorporatedhttps://code.google.com/p/oauth/), then reused and refactored inhttps://github.com/wikimedia/wikimedia-slimapp/commit/b7cab722278867bb650c2d4315489ad31d12593c, then split into a separate library.