Download the PHP package thunderlane/laravel-kitaboo-client without Composer
On this page you can find all versions of the php package thunderlane/laravel-kitaboo-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download thunderlane/laravel-kitaboo-client
More information about thunderlane/laravel-kitaboo-client
Files in thunderlane/laravel-kitaboo-client
Download thunderlane/laravel-kitaboo-client
More information about thunderlane/laravel-kitaboo-client
Files in thunderlane/laravel-kitaboo-client
Vendor thunderlane
Package laravel-kitaboo-client
Short Description Kitaboo library for Laravel
License MIT
Package laravel-kitaboo-client
Short Description Kitaboo library for Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-kitaboo-client
Installation
composer require thunderlane/laravel-kitaboo-client
Setup
Add the following lines to your .env file:
KITABOO_CONTEXT_URL=https://kitaboo.endpoint
KITABOO_CLIENT_ID=<CLIENT ID>
KITABOO_CONSUMER_KEY=<CONSUMER KEY>
KITABOO_CONSUMER_SECRET=<CONSUMER SECRET>
Run
php artisan vendor:publish
Example usage
use Thunderlane\Kitaboo\KitabooInterface;
class YourController
{
/**
* @var Thunderlane\Kitaboo\KitabooInterface
*/
private $kitaboo;
public function __construct(KitabooInterface $kitaboo)
{
$this->kitaboo = $kitaboo;
}
/**
* @throws \Thunderlane\Kitaboo\Exceptions\UnknownEntityException
*/
public function yourAction()
{
$userService = $this->kitaboo->getReaderServices()->getUserService();
$userService->authenticateUser('USERNAME', 'PASSWORD');
$token = $userService->getCurrentUserToken();
$userService->setCurrentUserToken($token);
$user = $userService->getCurrentUser();
$userService->setCurrentUser($user);
$collectionService = $this->kitaboo->getExternalServices()->getCollectionService();
$collectionService->listCollection();
}
}
All versions of laravel-kitaboo-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
illuminate/support Version ^5.5
guzzlehttp/psr7 Version ^1.5
guzzlehttp/guzzle Version ^6.3
guzzlehttp/oauth-subscriber Version 0.3.*
illuminate/support Version ^5.5
guzzlehttp/psr7 Version ^1.5
guzzlehttp/guzzle Version ^6.3
guzzlehttp/oauth-subscriber Version 0.3.*
The package thunderlane/laravel-kitaboo-client contains the following files
Loading the files please wait ....