oauthclient-php
oauthclient-php is a PHP client for Extension:OAuth.
Installing
[edit]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.
Usage
[edit]See README.
History
[edit]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/commit/b7cab722278867bb650c2d4315489ad31d12593c, then split into a separate library.
External links
[edit]- Source code (Phabricator mirror, GitHub)
- Composer package
- API Documentation
- Test coverage
- Issue tracker