PHPackages                             letsdeal-no/spid-client - 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. letsdeal-no/spid-client

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

letsdeal-no/spid-client
=======================

SPiD Client

v1.0.0(8y ago)16PHP

Since Mar 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/letsdeal-no/spid-client)[ Packagist](https://packagist.org/packages/letsdeal-no/spid-client)[ RSS](/packages/letsdeal-no-spid-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

SPiD client
===========

[](#spid-client)

This library provides a service-oriented client library for integration with SPiD

It provides:

SPiD client class
-----------------

[](#spid-client-class)

`\SPiD\Client` - it utilizes Guzzle to communicate with SPiD.

It provides public methods:

1. `post(string $url, array $formParams)` - general function to send requests with proper format recognized by SPiD without authorization
2. `getAuthenticated($url)` - sends GET request and utilizes Authorization service to obtain or refresh OAuth2 token
3. `postAuthenticated($url, array $formParams)` - sends POST request and utilizes Authorization service to obtain or refresh OAuth2 token
4. `parseSignedRequest($signed_request)` - used to parse [SPiD signed responses](https://techdocs.spid.no/endpoints/#signed-responses)

SPiD authorization token repository
-----------------------------------

[](#spid-authorization-token-repository)

`\SPiD\AuthTokenRepository` - used to get and refresh authorization tokens

It provides two public methods:

1. `getClientAuthToken(string $scope = ''): AuthToken` - used to retrieve authorization token
2. `refreshAccessToken(AuthToken $authToken): AuthToken` - used to refresh an existing token

There are currently two implementations of this interface:

1. `\SPiD\SimpleAuthTokenRepository` - based on Guzzle
2. `\SPiD\RedisAuthTokenRepository` - based on the one above, but caching authorization token in Redis using [predis](https://github.com/nrk/predis) library

Installation
------------

[](#installation)

Add Schibsted's Artifactory to your repositories list in composer.json:

```
    "repositories": [
        {
            "type": "composer",
            "url": "https://artifacts.schibsted.io/artifactory/api/composer/php-local"
        }
    ]
```

And run:

```
composer require letsdeal-no/spid-client:^1.0.0

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

3007d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17232873?v=4)[Maciej Kosiedowski](/maintainers/mkosiedowski)[@mkosiedowski](https://github.com/mkosiedowski)

---

Top Contributors

[![mkosiedowski](https://avatars.githubusercontent.com/u/17232873?v=4)](https://github.com/mkosiedowski "mkosiedowski (8 commits)")

### Embed Badge

![Health badge](/badges/letsdeal-no-spid-client/health.svg)

```
[![Health](https://phpackages.com/badges/letsdeal-no-spid-client/health.svg)](https://phpackages.com/packages/letsdeal-no-spid-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[unopim/unopim

UnoPim Laravel PIM

10.3k2.2k](/packages/unopim-unopim)[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.6M90](/packages/overtrue-socialite)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

121242.9k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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