wahidin/mutasi-qris
Composer 安装命令:
composer require wahidin/mutasi-qris
包简介
script cek mutasi qris.id
README 文档
README
Overview
QRIS Transaction Fetcher is a PHP library that allows merchants to retrieve transaction history from the QRIS (Quick Response Code Indonesian Standard) merchant portal. This library simplifies the process of fetching transaction data through automated login and data extraction.
Features
- 🔐 Secure login to QRIS merchant portal
- 📅 Flexible date range selection for transactions
- 🔢 Transaction amount filtering
- 🧩 Comprehensive error handling
- 📊 Parsed transaction details
Requirements
- PHP 7.4+
- Symfony DomCrawler Component
- cURL Extension
- Composer
Installation
Install the library using Composer:
composer require wahidin/mutasi
Usage Example
<?php use Wahidin\Mutasi\QrisTransactionFetcher; try { // Initialize the transaction fetcher $fetcher = new QrisTransactionFetcher( 'your_username', // Merchant portal username 'your_password', // Merchant portal password 100000, // Optional: Filter transactions above this amount '2023-01-01', // Optional: Start date '2023-02-01', // Optional: End date 50 // Optional: Limit number of transactions (default: 20) ); // Fetch transactions $transactions = $fetcher->fetchTransactions(); // Process transactions foreach ($transactions as $transaction) { echo "Transaction ID: " . $transaction['id'] . "\n"; echo "Amount: Rp " . number_format($transaction['nominal']) . "\n"; echo "Customer: " . $transaction['nama_costumer'] . "\n"; echo "---\n"; } } catch (Exception $e) { echo "Error: " . $e->getMessage(); }
Transaction Data Structure
Each transaction is an associative array with the following keys:
id: Transaction internal IDtimestamp: Unix timestamp of transactiontanggal: Transaction datenominal: Transaction amountstatus: Transaction statusinv_id: Invoice IDtanggal_settlement: Settlement dateasal_transaksi: Transaction originnama_costumer: Customer namerrn: Reference number
Error Handling
The library throws specific exceptions for various scenarios:
InvalidArgumentException: For incorrect input parametersRuntimeException: For login failures or network issues
Configuration Options
Constructor Parameters
$username(required): Merchant portal username$password(required): Merchant portal password$filter(optional): Minimum transaction amount filter$fromDate(optional): Start date for transaction history$toDate(optional): End date for transaction history$limit(optional): Maximum number of transactions to fetch (10-300)
Limitations
- Requires active internet connection
- Depends on the current structure of the QRIS merchant portal
- Maximum of 300 transactions per request
Security Notes
- Stores temporary cookies for authentication
- Recommends using environment variables for credentials
- Implements basic input validation
wahidin/mutasi-qris 适用场景与选型建议
wahidin/mutasi-qris 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 74 次下载、GitHub Stars 达 24, 最近一次更新时间为 2022 年 08 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wahidin/mutasi-qris 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wahidin/mutasi-qris 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 74
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-28