承接 verschoof/bunq-api 相关项目开发

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

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

verschoof/bunq-api

Composer 安装命令:

composer require verschoof/bunq-api

包简介

An API client that talks to bunq

README 文档

README

Build Status

Build Status

Symfony

If you use Symfony see https://github.com/verschoof/bunq-api-bundle

Installation

Require the package

composer require verschoof/bunq-api

Now setup the classes in your DI (example https://github.com/verschoof/bunq-api-bundle/blob/master/src/Resources/config/services.yml).

<?php

use Bunq\Certificate\Storage\FileCertificateStorage;
use Bunq\HttpClientFactory;
use Bunq\Service\DefaultInstallationService;
use Bunq\Service\DefaultTokenService;
use Bunq\Token\Storage\FileTokenStorage;

include __DIR__ . '/vendor/autoload.php';

$bunqCertificateStorage = new FileCertificateStorage('var/data/bunq');

$bunqHttpInstalltionClient = HttpClientFactory::createInstallationClient(
    'https://sandbox.public.api.bunq.com/v1',
        $bunqCertificateStorage
);

$bunqInstallationService = new DefaultInstallationService(
    $bunqHttpInstalltionClient,
    $bunqCertificateStorage,
    'apiKey',
    ['10.0.0.1']
);

$bunqTokenStorage       = new FileTokenStorage('var/data/bunq');
$bunqTokenService       = new DefaultTokenService($bunqInstallationService, $bunqTokenStorage, $bunqCertificateStorage);

$bunqHttpClient = HttpClientFactory::create($bunqCertificateStorage, $bunqTokenService, $bunqCertificateStorage);

$bunqClient = new \Bunq\Client($bunqHttpClient);

Usage

For example to get all users from bunq

$userResource = new \Bunq\Resource\UserResource($bunqClient);
$userResource->listUsers();

Thats about it.

Todo

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GNU
  • 更新时间: 2017-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固