|
|
6 år sedan | |
|---|---|---|
| .. | ||
| src | 6 år sedan | |
| LICENSE | 6 år sedan | |
| README.md | 6 år sedan | |
| composer.json | 6 år sedan | |
| composer.lock | 6 år sedan | |
| phpunit.xml.dist | 6 år sedan | |
NOTE: I'm looking for someone who could help to maintain this package alongside me, just because I don't have a ton of time to devote to it. However, I'm still going to keep trying to pay attention to PRs, etc.
PHPoAuthLib provides oAuth support in PHP 5.3+ and is very easy to integrate with any project which requires an oAuth client.
This library can be found on Packagist. The recommended way to install this is through composer.
Edit your composer.json and add:
{
"require": {
"lusitanian/oauth": "~0.3"
}
}
And install dependencies:
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
AbstractService implementation.OAuth\Common\Http\ClientInterface (two implementations are included)OAuth\Common\Token\TokenStorageInterface.The library supports both oAuth 1.x and oAuth 2.0 compliant services. A list of currently implemented services can be found below.
Examples of basic usage are located in the examples/ directory.
For usage with complete auth flow, please see the examples. More in-depth documentation will come with release 1.0.
To run the tests, you must install dependencies with composer install --dev