PHPackages                             vgnett/silex-spid - 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. [Framework](/categories/framework)
4. /
5. vgnett/silex-spid

Abandoned → [vgno/silex-spid-provider](/?search=vgno%2Fsilex-spid-provider)Library[Framework](/categories/framework)

vgnett/silex-spid
=================

SPiD service provider for Silex

2.0.0(11y ago)0261MITPHPPHP &gt;=5.3.3

Since Jul 3Pushed 11y ago12 watchersCompare

[ Source](https://github.com/vgno/silex-spid)[ Packagist](https://packagist.org/packages/vgnett/silex-spid)[ RSS](/packages/vgnett-silex-spid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

SPiD service provider for Silex
===============================

[](#spid-service-provider-for-silex)

Service provider making the SPiD PHP SDK available to your Silex application.

[![Build Status](https://camo.githubusercontent.com/5785153f42fce68f6705b34b2d7c9e66dbe4cd209acc50b119b0ed46ab9b8368/68747470733a2f2f7472617669732d63692e6f72672f76676e6f2f73696c65782d737069642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vgno/silex-spid)

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

[](#installation)

Add `"vgno/silex-spid-provider": "XXX"` to the composer.json file inside your project and do a `composer install`. Check [Composer](http://packagist.org/packages/vgno/silex-spid) for the latest available version.

Setup instructions
------------------

[](#setup-instructions)

Register the SPiD service provider in your Silex app like this;

```
$app->register(new SPiDServiceProvider(), array(
    'spid.clientId'         => 'foobar',
    'spid.clientSecret'     => 'barfoo',
    'spid.clientSignSecret' => 'foobarsecret',
    'spid.redirectUri'      => 'http://example.com/auth/login',
    'spid.domain'           => 'example.com',
    'spid.cookie'           => true,
    'spid.production'       => false,
    'spid.https'            => true,
    'spid.apiVersion'       => 2
));
```

Usage
-----

[](#usage)

After registering the SPiD service provider, the VGS\_Client instance can be accessed from the `$app` variable like this;

```
$response = $app['spid']->api('/user/123');
```

Tests
-----

[](#tests)

The service provider comes with PHPUnit tests and can be run by doing a `./vendor/phpunit/phpunit/phpunit` inside the silex-spid folder.

Documentation
-------------

[](#documentation)

See more documentation and examples at the spid-php-sdk page (maintained by Schibsted Payment) at [github.com/schibsted/spid-php-examples](https://github.com/schibsted/spid-php-examples/) and [techdocs.spid.no](http://techdocs.spid.no/) (access for SPiD customers only).

License
-------

[](#license)

Licensed under the MIT License, see LICENSE

Credits
-------

[](#credits)

Authored by Kristoffer Brabrand @ VG

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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

Every ~236 days

Total

2

Last Release

4095d ago

Major Versions

1.0 → 2.0.02015-02-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dc712d46ad616603b6d7c1be04809a6789935c6cf7c99e9f1e891ac2045f7a5?d=identicon)[kbrabrand](/maintainers/kbrabrand)

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

---

Top Contributors

[![androa](https://avatars.githubusercontent.com/u/588046?v=4)](https://github.com/androa "androa (18 commits)")[![kbrabrand](https://avatars.githubusercontent.com/u/2884292?v=4)](https://github.com/kbrabrand "kbrabrand (4 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vgnett-silex-spid/health.svg)

```
[![Health](https://phpackages.com/badges/vgnett-silex-spid/health.svg)](https://phpackages.com/packages/vgnett-silex-spid)
```

###  Alternatives

[flint/flint

Enhanced Silex

12167.5k](/packages/flint-flint)[ddesrosiers/silex-annotation-provider

A silex service provider that allows the use of annotations in ServiceControllers.

25246.7k3](/packages/ddesrosiers-silex-annotation-provider)[tobiassjosten/responsible-service-provider

A Silex ServiceProvider for automagic response formatting.

3490.8k](/packages/tobiassjosten-responsible-service-provider)[php-di/silex-bridge

PHP-DI integration in Silex

2465.4k1](/packages/php-di-silex-bridge)[propel/propel-service-provider

Propel integrationfor Silex.

2625.2k3](/packages/propel-propel-service-provider)[stikmanw/silex-newrelic

Integrate the NewRelic PHP API into Silex framework

2014.7k](/packages/stikmanw-silex-newrelic)

PHPackages © 2026

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