承接 rikudou/qr-payment-bundle 相关项目开发

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

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

rikudou/qr-payment-bundle

Composer 安装命令:

composer require rikudou/qr-payment-bundle

包简介

Symfony bundle for generating QR payments for Czech, Slovak and European standards

README 文档

README

For Czech, Slovak and European banks.

This is a Symfony bundle that simplifies work with my packages for Czech, Slovak and European QR payments.

Read the individual documentations of the libraries if you want to know more about them.

This bundle takes these packages together, creates a Symfony service and allows you to set defaults for the payments.

Installation

Run composer require rikudou/qr-payment-bundle.

If you use Symfony Flex the bundle should be enabled automatically.

The default config file is created via rikudou/installer.

Configuration

Go to the config/packages/rikudou_qr_payment.yaml and edit the details.

If the file is not created for any reason, you can find the default config file here.

The names should be pretty self-explanatory, you have to configure Czech, Slovak and European defaults separately. You can also override defaults for European standard for supported countries (Austria, Belgium, Germany, Netherlands).

Usage

This package defines one service, Rikudou\QrPaymentBundle\QrPayment\QrPaymentFactory, which is used to create instances of payment classes.

Example

<?php

use \Rikudou\QrPaymentBundle\QrPayment\QrPaymentFactory;

class MyAwesomeService {
    
    /**
     * @var QrPaymentFactory 
     */
    private $qrPaymentFactory;
    
    public function __construct(QrPaymentFactory $qrPaymentFactory) {
        $this->qrPaymentFactory = $qrPaymentFactory;
    }
    
    public function getCzechQrCode() {
        return $this->qrPaymentFactory->czech();
    }
    
    public function getSlovakQrCode() {
        return $this->qrPaymentFactory->slovak();
    }
    
    public function getEuropeanQrCode() {
        return $this->qrPaymentFactory->european();
    }
    
    public function getAustrianQrCode() {
        return $this->qrPaymentFactory->austrian();
    }
    
    public function getBelgianQrCode() {
        return $this->qrPaymentFactory->belgian();
    }
    
    public function getGermanQrCode() {
        return $this->qrPaymentFactory->german();
    }
    
    public function getDutchQrCode() {
        return $this->qrPaymentFactory->dutch();
    }
    
    public function getFinnishQrCode() {
        return $this->qrPaymentFactory->finnish();
    }
    
}

The methods in example return new instances with defaults from yaml file.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2018-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固