oauthclient-php

oauthclient-php is a PHP client for Extension:OAuth.

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.

InstallingEdit

To use it inside your application, simply run composer require mediawiki/oauthclient, or add a dependency in your composer.json. (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/r/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.

UsageEdit

See README.

External linksEdit