承接 mblsolutions/inspireddeck-php-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mblsolutions/inspireddeck-php-laravel

Composer 安装命令:

composer require mblsolutions/inspireddeck-php-laravel

包简介

Official Inspired Deck interface for Laravel PHP applications.

README 文档

README

The Inspired Deck Interface for Laravel gives you an API interface into the Inspired Deck Platform for your Laravel applications.

Integration Applications

Inspired Deck provides an interface for the integrator to manage their own set of security credentials. This interface is available from the ‘Integrations’ menu item of the Inspired Deck Portal.

Installation

The recommended way to install Inspired Deck Larvel is through Composer.

composer require mblsolutions/inspireddeck-php-laravel

Laravel without auto-discovery

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

\MBLSolutions\InspiredDeckLaravel\InspiredDeckServiceProvider::class,

If you want to use the facade for authentication, add this to your facades in app.php:

'InspiredDeckAuth' => \MBLSolutions\InspiredDeckLaravel\InspiredDeckAuthFacade::class,

Usage

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="MBLSolutions\InspiredDeckLaravel\InspiredDeckServiceProvider"

A new config file will be available in config/inspireddeck.php, please familiarise yourself with the available environment variables that should be setup in .env.

ID_ENDPOINT=https://inspireddeck.co.uk
ID_CLIENT_ID=1
ID_SECRET=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjBmOGMwNDAxZDAy

Authentication

To authenticate to Inspired Deck use the login method on the Authentication object.

$deckAuthentication = new \MBLSolutions\InspiredDeckLaravel\Authentication;

$deckAuthentication->login('john.doe@example.com', 'password');

Once authenticated, the authentication will be stored in the session key specified in the inspireddeck config.

Checking authentication/Issuing Transactions

$deckAuthentication = new \MBLSolutions\InspiredDeckLaravel\Authentication;

if (!$deckAuthentication->isAuthenticated()) {
    $deckAuthentication->login('john.doe@example.com', 'password');
}

// Perform transaction
$balance = new \MBLSolutions\InspiredDeck\Balance;

$result = $balance->balance([
    'serial' => 123456789
]);

Further documentation

See the Inspired Deck Interface for PHP package for further documentation on issuing transactions.

License

Inspired Deck Interface for Laravel is free software distributed under the terms of the MIT license.

A contract/subscription to Inspired Deck is required to make use of this package, for more information contact MBL Solutions

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2019-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固