PHPackages                             stanley89/spayd-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. stanley89/spayd-php

ActiveLibrary[Payment Processing](/categories/payments)

stanley89/spayd-php
===================

PHP implementation of SmartPaymentDescriptor Generator.

3171PHP

Since Oct 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/stanley89/spayd-php)[ Packagist](https://packagist.org/packages/stanley89/spayd-php)[ RSS](/packages/stanley89-spayd-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP implementation of SmartPaymentDescriptor Generator
======================================================

[](#php-implementation-of-smartpaymentdescriptor-generator)

SmartPaymentDescriptor is a lightweight format for exchanging a payment information. A vCard for payment instead of contacts, if you will..

This PHP library simplifies adding the support for generating/validating the SmartPaymentDescriptor (both file and QR code generation) to any PHP application.

Original Java implementation:

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require stanley89/spayd-php
```

Basic usage
-----------

[](#basic-usage)

```
use Spayd\String\SpaydPaymentAttributes;
use Spayd\String\SpaydExtendedPaymentAttributeMap;
use Spayd\String\SpaydPayment;
use Spayd\Model\Account\CzechBankAccount;
use Spayd\Utilities\SpaydQRUtils;

$parameters = new SpaydPaymentAttributes();
$parameters->setBankAccount(new CzechBankAccount("19", "123", "0800"));

$parameters->setAmount("1");
$parameters->setCurrency("CZK");
$parameters->setDate(new \DateTime("2018-12-06"));
$parameters->setRecipientName("Jan Novák");
$parameters->setMessage("Příliš žluťoučký kůň úpěl ďábelské ódy.");
$extendedParameters = new SpaydExtendedPaymentAttributeMap(["VS" => 123, "SS" => 456, "KS" => 558]);
$transliterateParams = true;
$result = SpaydPayment::paymentStringFromAccount($parameters, $extendedParameters, $transliterateParams);

$qrCode = SpaydQRUtils::getQRCode(null,  $result, true);
$qrCode->writeFile(__DIR__.'/qrcode.png');
```

License
-------

[](#license)

The sources are available under [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/26718106fd67744973830c582050892516138fc244c8b5f2518cf1932b751cb0?d=identicon)[stanley89](/maintainers/stanley89)

---

Top Contributors

[![stanley89](https://avatars.githubusercontent.com/u/2914926?v=4)](https://github.com/stanley89 "stanley89 (4 commits)")[![milsorm](https://avatars.githubusercontent.com/u/6371213?v=4)](https://github.com/milsorm "milsorm (1 commits)")

### Embed Badge

![Health badge](/badges/stanley89-spayd-php/health.svg)

```
[![Health](https://phpackages.com/badges/stanley89-spayd-php/health.svg)](https://phpackages.com/packages/stanley89-spayd-php)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
