承接 slowbeardigger/xmr-pay 相关项目开发

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

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

slowbeardigger/xmr-pay

Composer 安装命令:

composer require slowbeardigger/xmr-pay

包简介

Non-custodial Monero payment verification in pure PHP — view-key only, no monero-wallet-rpc, no server. The PHP engine behind xmr-pay, mirroring the npm library.

README 文档

README

Non-custodial Monero payment verification in pure PHP — view-key only, no monero-wallet-rpc, no daemon on your box required, no server. This is the PHP engine behind xmr-pay for WooCommerce, extracted as a standalone Composer package so any PHP project can accept Monero: Laravel, Symfony, Joomla, PrestaShop, Magento, OpenCart, or a plain checkout.

It is the exact mirror of the xmr-pay JavaScript library — same money math, same invoice state machine — pinned by shared conformance vectors.

How it differs from monero-integrations/monerophp

monerophp is a crypto toolbox + RPC clients (the building blocks). This package is the layer on top: it answers "is this order paid?" — it derives a per-order subaddress, detects the output against your view key, verifies the RingCT amount commitment, checks confirmations and time-locks, dedupes the 2018 burning bug, and runs the invoice state machine. It builds on monerophp's primitives (see third-party/monero/ATTRIBUTION.md); it does not reimplement them.

Requirements

  • PHP 7.4+
  • ext-gmp (the money math) and ext-bcmath (base58)
  • a Monero node to read the chain (a public one is fine; for serious money run your own or require two to agree). No wallet-rpc.

Install

composer require slowbeardigger/xmr-pay

What's here

  • XmrPay\Util — money math, the invoice state machine (to_invoice_state), claim-link expiry, multi-transaction payment aggregation (summarize_payments), CSV safety. Pure, no network.
  • XmrPay\Scanner — the verification engine: fetch a tx from a node, detect a payment to your address/subaddress, decode + verify the amount, report confirmations / lock / double-spend. HTTP works out of the box via PHP streams (no WordPress); inside WordPress it transparently uses wp_safe_remote_*.

Adapters

Connecting a platform is thin: the engine does the Monero work, an adapter just maps the platform's order flow onto a handful of calls. See docs/WRITING-AN-ADAPTER.md for the full contract and a minimal skeleton. Reference adapters:

WHMCS, Joomla, PrestaShop, OpenCart, and others are good next adapters and welcome contributions.

Security model

  • View key only. The package never asks for or holds a spend key. It can read incoming payments; it can never move funds.
  • The amount is proven, not claimed (RingCT commitment check). It fails closed: commitment, confirmations, no time-lock, and no double-count must all pass, or the payment is not credited.
  • You trust the node you point it at. Use your own, or require agreement across nodes.

Status

Extracted from the WooCommerce plugin (the proven engine). Pure-logic tests (tests/: state, util, aggregation, refund, crypto) run under plain php with no Composer:

composer test          # or: php tests/aggregation.test.php

The WooCommerce plugin will be refactored to consume this package (dogfood), so there is one engine, not two copies.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固