承接 khandurdyiev/monobank-php-client 相关项目开发

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

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

khandurdyiev/monobank-php-client

最新稳定版本:v1.0.5

Composer 安装命令:

composer require khandurdyiev/monobank-php-client

包简介

PHP Client for Monobank API

README 文档

README

Total Downloads Latest Stable Version License PHP Version

Monobank php client helps you to use Monobank API easily.

Installation

It's recommended that you use Composer to install Monobank php client.

$ composer require khandurdyiev/monobank-php-client

Important

All money amounts in dime (according to Monobank API)

Basic Usage (Public Data)

<?php

use Khandurdyiev\MonoClient\MonoClient;

// create a monobank client instance
$mono = new MonoClient();
$currencies = $mono->currency()->all();

foreach ($currencies as $currency) {
    $currencyA = $currency->getCurrencyA(); // USD
    $currencyB = $currency->getCurrencyB(); // UAH
    $date = $currency->getDate(); // returns Carbon instance with date
    // ...
}

Usage with token (Private Data)

<?php

use Carbon\Carbon;
use Khandurdyiev\MonoClient\MonoClient;

// create a monobank client instance
$mono = new MonoClient('your_monobank_api_token'); // you can get from https://api.monobank.ua

// Get client info
$clientInfo = $mono->clientInfo();
$name = $clientInfo->getName();
$accounts = $clientInfo->getAccounts()->all();

foreach ($accounts as $account) {
    $balance = $account->getBalance(); // 123456
    $creditLimit = $account->getCreditLimit(); // 654321
    $currency = $account->getCurrency(); // UAH
    
    // ...
}

// Get statements of concrete account
$from = Carbon::now()->subMonth();
$to = Carbon::now();
$statements = $mono->statements($from, $to, 'account_id')->all();

foreach ($statements as $statement) {
    $amount = $statement->getAmount(); // 123456
    $cashbackAmount = $statement->getCashbackAmount(); // 123456
    $currency = $statement->getCurrency(); // UAH
    // ...
}

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固