定制 hafael/fitbank-php-sdk 二次开发

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

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

hafael/fitbank-php-sdk

Composer 安装命令:

composer require hafael/fitbank-php-sdk

包简介

Fitbank SDK for PHP

README 文档

README

Latest Stable Version Latest Unstable Version Total Downloads License

Bank up your business

FitBank provides comprehensive financial service integrations. With a RESTful API platform, FitBank allows businesses to build custom products adapted to customers' needs.

Fully configurable, ideal for instant payments with PIX, boleto collection, utilities and taxes payments, online balance and statement, digital onboarding, and prepaid card in a white-label experience and beyond.

Why FitBank?

We aspire to speed up the digital transformation of the entire financial ecosystem with scale, performance, and control of high-volume transactions.

This library provides developers with a simple set of bindings to help you integrate Fitbank API to PHP website project.

Fitbank Dev Portal

Hi, Dev! This page will help you get started with FitBank API. https://dev.fitbank.com.br/docs

💡 Requirements

PHP 7.3 or higher

🧩 Fitbank Collections

Resource Status
Onboarding
Account Management
Boleto in/out
PIX in/out/Dict
TED in/out
P2P transfers
Prepaid cards
Top Ups
ATM Withdrawals
Payments
Users
EasyCrédito (CaaS) 💻
Collection Order 💻

✅ = All methods available ⌛ = Under development/testing 💻 = Awaiting contributions

📦 Installation

First time using Fitbank? Create your Fitbank account, if you don’t have one already.

  1. Download Composer if not already installed

  2. On your project directory run on the command line composer require "hafael/fitbank-php-sdk"

  3. Copy the API Key and Secret and replace API_KEY and API_SECRET with it.

That's it! Fitbank PHP SDK has been successfully installed.

🌟 Getting Started

Simple usage looks like:

  <?php
    require_once 'vendor/autoload.php'; // You have to require the library from your Composer vendor folder

    $fitbankClient = new Hafael\Fitbank\Client(
        'API_KEY', 
        'API_SECRET', 
        'PARTNER_ID', 
        'BUSINESS_UNIT_ID',
        'MKTPLACE_ID',
        'TAX_NUMBER', //Account Owner
        'BASE_URL', //Sandbox as default
    );

    //Get created accounts
    $response = $fitbankClient->account()->getAccountList();
    var_dump($response->json());

  ?>

Creating new KYC Account

  <?php
    require_once 'vendor/autoload.php';

    use Hafael\Fitbank\Client;
    use Hafael\Fitbank\Models\Account;
    use Hafael\Fitbank\Models\Address;
    use Hafael\Fitbank\Models\Document;
    use Hafael\Fitbank\Models\Person;

    ...

    //Create new KYC Account
    
    $holder = new Person([
        'personRoleType' => Person::ROLE_TYPE_HOLDER,
        'taxNumber' => '88494940090',
        'identityDocument' => '269435310',
        'personName' => 'Rafael de Marquez Santos',
        'nickname' => 'Rafael',
        'mail' => 'rafaelmail@meuemail.com',
        'phoneNumber' => '219729345534',
        'checkPendingTransfers' => false,
        'publicExposedPerson' => false,
        'birthDate' => '1996/05/20',
        'motherFullName' => 'Daniela Cruz de Marquez',
        'fatherFullName' => 'João Francisco Santos',
        'nationality' => 'Brasileiro',
        'birthCity' => 'Niterói',
        'birthState' => 'Rio de Janeiro',
        'gender' => Person::GENDER_MALE,
        'maritalStatus' => Person::MARITAL_SINGLE,
        'occupation' => 'Empresário',
    ]);

    $documents = [
        Document::fromBase64('dGVzdGU=', Document::FORMAT_JPG)
                ->documentType(Document::TYPE_CNH)
                ->expirationDate('2023/04/15'),
        Document::fromBase64('dGVzdGU=', Document::FORMAT_JPG)
                ->documentType(Document::TYPE_PROOF_ADDRESS),
    ];

    $addresses = [
        new Address([
            'addressType' => Address::RESIDENTIAL,
            'addressLine' => 'Av. Constantino de Barros Filho',
            'addressLine2' => '61',
            'complement' => 'APT 704',
            'zipCode' => '24360-022',
            'neighborhood' => 'São Francisco',
            'cityName' => 'Niterói',
            'state' => 'RJ',
            'country' => 'Brasil',
        ])
    ];

    $account = new Account([
        'holder' => $holder,
        'documents' => $documents,
        'addresses' => $addresses,
    ]);

    $response = $fitbankClient->account->newAccount($account);
    var_dump($response->json());


  ?>

📚 Documentation

Visit our Dev Site for further information regarding:

📜 Other repositories

Repo Description
hafael/php-pix-client Biblioteca PHP para integração com PSPs no arranjo do PIX
hafael/azure-mailer-driver Azure Email Communication Service (ECS) for Laravel
hafael/php-http-client Http client for building modern APIs or simple 3rd party integrations in PHP
hafael/laraflake LaraFlake generate 64bit unique identifiers for mysql database with horizontal scaling
hafael/totalvoice-notification-channel TotalVoice notifications channel for Laravel Framework

📜 License

MIT license. Copyright (c) 2023 - Rafael / Fitbank For more information, see the LICENSE file.

hafael/fitbank-php-sdk 适用场景与选型建议

hafael/fitbank-php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 689 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「api」 「client」 「payments」 「sdk」 「Banking」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 hafael/fitbank-php-sdk 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-30