Jump to content

Oauthclient-php: Difference between revisions

From mediawiki.org
Content deleted Content added
No edit summary
fix url
(26 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<languages/>
'''oauthclient-php''' is a PHP client for [[Extension:OAuth]].
<translate>
<!--T:1-->
<tvar name=1>'''oauthclient-php'''</tvar> is a PHP client for <tvar name=2>{{ll|Extension:OAuth}}</tvar>.


== Installing == <!--T:2-->
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.
</translate>
<translate><!--T:3--> To use it inside your application, simply run <tvar name=1><code>composer require mediawiki/oauthclient</code></tvar>, or add a dependency in your <tvar name=2><code>composer.json</code></tvar>.</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><!--T:9--> If you prefer using git, use <tvar name=1><code>git clone https://gerrit.wikimedia.org/r/mediawiki/oauthclient-php.git</code></tvar>, and autoload the library however you wish to.</translate>
== Installing ==
To use it inside your application, simply run <code>composer require mediawiki/oauthclient-php</code>, or add a dependency in your <code>composer.json</code>.


<translate><!--T:10--> If you wish to develop and contribute on the library, see [[<tvar name=1>Special:MyLanguage/Developer account</tvar>|developer account]] for gaining access to our code review system.</translate>
If you prefer using git, use <code>git clone https://gerrit.wikimedia.org/r/p/mediawiki/oauthclient-php.git</code>, and autoload the library however you wish to.


<translate>
If you wish to develop and contribute on the library, see [[Developer access|developer access]] for gaining access to our code review system.
== Usage == <!--T:5-->
</translate>
<translate><!--T:11--> See [<tvar name=url>https://github.com/wikimedia/mediawiki-oauthclient-php/blob/master/README.md</tvar> README].</translate>


<translate>
== Usage ==
== 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>
See [https://github.com/wikimedia/mediawiki-oauthclient-php/blob/master/README.md README].


== 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.