承接 kevinkopf/finik-kg-symfony-bundle 相关项目开发

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

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

kevinkopf/finik-kg-symfony-bundle

Composer 安装命令:

composer require kevinkopf/finik-kg-symfony-bundle

包简介

This is the Symfony bundle to integrate Finik.kg payment system into your application.

README 文档

README

WARNING! This package is not yet ready for production usage!

This is the Symfony bundle to integrate Finik.kg into your application.

Installation

To install the bundle, you can use Composer. Run the following command in your terminal:

composer require kevinkopf/finik-kg-symfony-bundle

Make sure to enable the bundle in your bundles.php file:

// config/bundles.php
return [
    // ...
    KevinKopf\FinikKgPaymentBundle\FinikKgPaymentBundle::class => ['all' => true],
];

Usage

Configuration

To configure the bundle, you need to add the following configuration to your config/packages/finik_kg_payment.yaml file:

finik_kg_payment:
  secret_key: '%env(resolve:FINIK_KG_SECRET_KEY)%'
  public_key: '%env(resolve:FINIK_KG_PUBLIC_KEY)%'
  pass_phrase: '%env(FINIK_KG_PASSPHRASE)%'
  api_key: '%env(FINIK_KG_API_KEY)%'
  base_url: '%env(FINIK_KG_BASE_URL)%'
  redirect_url: '%env(FINIK_KG_REDIRECT_URL)%'
  account_id: '%env(FINIK_KG_ACCOUNT_ID)%'
  merchant_code: '%env(FINIK_KG_MERCHANT_CODE)%'

Note that the values are pointing to environmental variables. So either set up the .env (or the .env.local) file or set it in the environment directly. It's up to you.

Generating your RSA keys

Before you can use Finik.kg, you need to generate your RSA keys. You can do this using the following command:

php bin/console finik:generate-keys

If you already have a key pair, the command will fail. You may use the --overwrite flag to overwrite the existing keys.

Generating the payment link

You will need to create a Payment and use it in PaymentManager. The Payment needs a UUID4 for paymentId argument. You may use ramsey/uuid for this.

<?php

namespace YourApp\Payment\Handler;

use KevinKopf\FinikKgPaymentBundle\Payment\Payment;
use KevinKopf\FinikKgPaymentBundle\Payment\PaymentManager;
use Ramsey\Uuid\Uuid;

class YourAppPaymentHandler
{
    public function __construct(
        private PaymentManager $paymentManager,
    ) {
    ...
    }
    
    public function generateRedirectLink(): string
    {
        return $this->paymentManager->authorize(
            new Payment(
                amount: 2000,
                paymentId: (Uuid::uuid4())->toString(),
            )
        );
    }
}

In this example generateRedirectLink returns a URL that you need to redirect your user to. The URL will take the user to finik.kg payment gate, where they'll be able to pay for their order via a QR code.

kevinkopf/finik-kg-symfony-bundle 适用场景与选型建议

kevinkopf/finik-kg-symfony-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 496 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 kevinkopf/finik-kg-symfony-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kevinkopf/finik-kg-symfony-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 kevinkopf/finik-kg-symfony-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-11