oauthclient-php is a PHP client for Extension:OAuth.
To use it inside your application, simply run
composer require mediawiki/oauthclient, or add a dependency in your
(You may need to install Composer first.)
If you haven't already, you'll need to include
include_once("./vendor/autoload.php"); in your PHP script to include your composer libraries.
If you prefer using git, use
git clone https://gerrit.wikimedia.org/g/mediawiki/oauthclient-php.git, and autoload the library however you wish to.
If you wish to develop and contribute on the library, see developer account for gaining access to our code review system.
The code was originally published at https://github.com/Stype/mwoauth-php (which incorporated https://code.google.com/p/oauth/), then reused and refactored in https://github.com/wikimedia/wikimedia-slimapp/tree/master/src/OAuth, then split into a separate library.
- Source code (Phabricator mirror, GitHub mirror)
- Composer package
- API Documentation
- Test coverage report
- Issue tracker