Projectplace OAuth PHP
Service wrapper for Projectplace OAuth 1.0 for
use with the PHPOAuthLib library by
Lusitanian., (*1)
PHPoAuthLib provides oAuth support in PHP 5.3+ and is very easy to integrate
with any project which requires an oAuth client., (*2)
More about the Projectplace API., (*3)
, (*4)
Installation
The library is available on Packagist.
The recommended way to install it is with composer., (*5)
Add as a dependency in composer.json
:, (*6)
{
"require": {
"crockett95/projectplaceoauth": "~0.1"
}
}
Or require with composer
:, (*7)
composer require crockett95/projectplaceoauth
Usage
Use the ServiceFactory::registerService
method from the PHPOAuthLib library to
register the new service., (*8)
<?php
$serviceFactory = new \OAuth\ServiceFactory();
$serviceFactory->registerService('projectplace', 'Crockett95\\ProjectPlace\\OAuthService');
See the example for more information., (*9)
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Credits
Most of the code is a blatant ripoff of
PHPOAuthLib library., (*10)
License
Released under the terms of the MIT license., (*11)