定制 vgno/silex-spid-provider 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vgno/silex-spid-provider

最新稳定版本:2.0.0

Composer 安装命令:

composer require vgno/silex-spid-provider

包简介

SPiD service provider for Silex

README 文档

README

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

Build Status

Installation

Add "vgno/silex-spid-provider": "XXX" to the composer.json file inside your project and do a composer install. Check Composer for the latest available version.

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

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

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

Documentation

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

License

Licensed under the MIT License, see LICENSE

Credits

Authored by Kristoffer Brabrand @ VG

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 12
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-24