PHPackages                             bokbasen/php-sdk-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bokbasen/php-sdk-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

bokbasen/php-sdk-auth
=====================

PHP SDK for Bokbasen API authentication service

v3.0.1(2y ago)125.5k↓50%21MITPHPPHP &gt;=5.6

Since Oct 11Pushed 2y ago10 watchersCompare

[ Source](https://github.com/Bokbasen/php-sdk-auth)[ Packagist](https://packagist.org/packages/bokbasen/php-sdk-auth)[ Docs](https://github.com/Bokbasen/php-sdk-auth)[ RSS](/packages/bokbasen-php-sdk-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (10)Versions (11)Used By (1)

PHP SDK for Bokbasen authentication service
===========================================

[](#php-sdk-for-bokbasen-authentication-service)

This PHP SDK enables easy usage of Bokbasen's authentication service that is required for accessing any of Bokbasen's API such as digital distribution platform, metadata or orders. Bokbasen's APIs are not public and only available on commercial terms, you must have a username/password from Bokbasen in order to use this package.

The basic package enable creation of a TGT that can be used for further login to API services. The package also provides an interface for caching TGTs so one can get a more efficient flow, only renewing TGT when it is about to expire. For production usage this is highly recommended. The API documentation is available on [this page](https://bokbasen.jira.com/wiki/display/api/Authentication+Service).

HTTP client
-----------

[](#http-client)

The SDK has a dependency on the virtual package php-http/client-implementation which requires to you install an adapter, but we do not care which one. That is an implementation detail in your application. We also need a PSR-7 implementation and a message factory.

This is based on [PHP-HTTP](http://docs.php-http.org/en/latest/index.html) that provides an implementation-independent plugin system to build pipelines regardless of the HTTP client implementation used. So basically you can plugin whichever HTTP implementation you would like to use.

### I do not care, I just want it to work!

[](#i-do-not-care-i-just-want-it-to-work)

By adding a compatible HTTP adapter to your project the SDK will automatically detect the package and use this adapter. As long as you do not need any specific HTTP settings injected (such as proxy settings etc.) this will work just fine.

`$ composer require php-http/guzzle6-adapter`

Auto detected client and TGT cache
----------------------------------

[](#auto-detected-client-and--tgt-cache)

In production environments you should always use teh caching feature. Not doing this will potentially give you a significant performance impact on the response time from Bokbasen's APIs. You can cache the TGT using any [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible package. Example below is using Symfony's file caching.

```

```

Use injected HTTP client
------------------------

[](#use-injected-http-client)

```

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~290 days

Recently: every ~459 days

Total

10

Last Release

893d ago

Major Versions

v1.1.1 → v2.0.02016-11-28

v1.0.1 → v2.0.32018-11-29

v2.0.3 → v3.0.02023-12-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb05bc87d61101be05bae28bf60d79811b6c99873dc174f9e75fee8e98a99f6f?d=identicon)[stadskle](/maintainers/stadskle)

![](https://www.gravatar.com/avatar/89978e62fc6488adfff83f28bfed9f976b7d2ed1e893ac2bfbd6324a34c2f430?d=identicon)[bokbasen](/maintainers/bokbasen)

---

Top Contributors

[![stadskle](https://avatars.githubusercontent.com/u/6637162?v=4)](https://github.com/stadskle "stadskle (4 commits)")[![adamsokolowski06](https://avatars.githubusercontent.com/u/37297805?v=4)](https://github.com/adamsokolowski06 "adamsokolowski06 (2 commits)")[![htollefsen](https://avatars.githubusercontent.com/u/3762720?v=4)](https://github.com/htollefsen "htollefsen (2 commits)")[![eiriksm](https://avatars.githubusercontent.com/u/865153?v=4)](https://github.com/eiriksm "eiriksm (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bokbasen-php-sdk-auth/health.svg)

```
[![Health](https://phpackages.com/badges/bokbasen-php-sdk-auth/health.svg)](https://phpackages.com/packages/bokbasen-php-sdk-auth)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[florianv/exchanger

Currency exchange rates framework for PHP

1874.7M15](/packages/florianv-exchanger)[happyr/linkedin-api-client

LinkedIn API client. Handles OAuth, CSRF protection. Easy to implement and extend. This is a standalone library for any composer project.

1991.6M12](/packages/happyr-linkedin-api-client)[j0k3r/graby

Graby helps you extract article content from web pages

384349.6k2](/packages/j0k3r-graby)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
