Oauthclient-php: Difference between revisions
No edit summary |
fix url |
||
| (26 intermediate revisions by 13 users not shown) | |||
| Line 1: | Line 1: | ||
<languages/> |
|||
| ⚫ | |||
<translate> |
|||
<!--T:1--> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
</translate> |
|||
| ⚫ | |||
<translate><!--T:4--> (You may need to [<tvar name=url>https://getcomposer.org/download/</tvar> install Composer] first.)</translate> |
|||
<translate><!--T:8--> If you haven't already, you'll need to include <tvar name=1><code>include_once("./vendor/autoload.php");</code></tvar> in your PHP script to include your composer libraries.</translate> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
<translate> |
|||
| ⚫ | |||
| ⚫ | |||
</translate> |
|||
| ⚫ | |||
<translate> |
|||
| ⚫ | |||
== History == <!--T:6--> |
|||
</translate> |
|||
| ⚫ | <translate><!--T:12--> The code was originally published at <tvar name=url1>https://github.com/Stype/mwoauth-php</tvar> (which incorporated <tvar name=url2>https://code.google.com/p/oauth/</tvar>), then reused and refactored in <tvar name=url3>https://github.com/wikimedia/wikimedia-slimapp/commit/b7cab722278867bb650c2d4315489ad31d12593c</tvar>, then split into a separate library.</translate> |
||
<translate> |
|||
| ⚫ | |||
== External links == |
== External links == <!--T:7--> |
||
</translate> |
|||
* [https://git.wikimedia.org/tree/?r=mediawiki/oauthclient-php.git Source code on git.wikimedia.org] ([https://github.com/wikimedia/mediawiki-oauthclient-php GitHub mirror]) |
|||
* <translate><!--T:13--> [[<tvar name=1>Special:MyLanguage/OAuth/For_Developers</tvar>|OAuth for developers]]</translate> |
|||
* [https://packagist.org/packages/mediawiki/oauthclient-php Package on Packagist.org] |
|||
{{PHPLibraryLinks |
|||
* [https://doc.wikimedia.org/oauthclient-php/ API Documentation] |
|||
|name = oauthclient-php |
|||
* [[phab:tag/oauth/|Issue tracker]] |
|||
|phab-callsign = MOAC |
|||
|gerrit-repo = mediawiki/oauthclient-php |
|||
|github-repo = mediawiki-oauthclient-php |
|||
|packagist-vendor = mediawiki |
|||
|packagist-name = oauthclient |
|||
|wikimedia-doc = mediawiki-oauthclient-php |
|||
|phab-tag = oauth |
|||
}} |
|||
{{lowercase}} |
{{lowercase}} |
||
[[Category:PHP libraries]] |
[[Category:PHP libraries{{#translation:}}]] |
||
Revision as of 16:17, 24 August 2025
oauthclient-php is a PHP client for Extension:OAuth.
Installing
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
See README.
History
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
- Source code (Phabricator mirror, GitHub)
- Gerrit code review
- Composer package
- API Documentation
- Test coverage
- Issue tracker