PHPackages                             prompt-cash/prompt-php-sdk - 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. prompt-cash/prompt-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

prompt-cash/prompt-php-sdk
==========================

Prompt.Cash PHP SDK to create payments (including tokens) and short URLs

v0.0.1(4y ago)03MITPHP

Since Jul 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/prompt-cash/prompt-php-sdk)[ Packagist](https://packagist.org/packages/prompt-cash/prompt-php-sdk)[ RSS](/packages/prompt-cash-prompt-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Prompt.Cash PHP SDK
===================

[](#promptcash-php-sdk)

This is a PHP library to add [Prompt.Cash](https://prompt.cash/) to your PHP based website (WordPress, Laravel, Joomla, ...). It is a PHP wrapper over the [Prompt.Cash REST API](https://prompt.cash/pub/docs/).

**Work in Progress - DO NOT USE THIS SDK YET**

For WordPress there is also an [official plugin](https://wordpress.org/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/).

#### Installation

[](#installation)

With composer (recommended):

```
composer require "prompt-cash/prompt-php-sdk"

```

Manual installation:

1. Download the source code and include `prompt-cash.php` from the root directory of this library.

#### Requirements

[](#requirements)

```
PHP >= 7.2

```

Features
--------

[](#features)

- create new payments
- show payment QR code as iframe or redirect to payment page in new window
- check payment status
- create short URLs (URL shortener to monetize links)
- get a list of previously created short URLs
- delete and update short URLs

Docs
----

[](#docs)

Take a look at [code examples](./examples).

#### PromptPhpSdk class

[](#promptphpsdk-class)

##### \_\_construct(PromptOptions $options = null)

[](#__constructpromptoptions-options--null)

Create the main API class.

- `PromptOptions $options` - (optional) API options (see below)

Testing
-------

[](#testing)

To run unit tests type the following command in the project root directory (requires PHPUnit, installed automatically with Composer):

`./vendor/bin/phpunit --bootstrap vendor/autoload.php tests`

Contact
-------

[](#contact)

[Website](https://prompt.cash/) - [Twitter](https://twitter.com/CashPrompt) - [Telegram](https://t.me/PromptCash) - [YouTube](https://www.youtube.com/channel/UClfNVdL3T0RF6pF1yGi9teg)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1770d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/157d7fe76f0f3a101ea4bfdb4ebc4841955d6836d22f277ee1e496559ae537b6?d=identicon)[Ekliptor](/maintainers/Ekliptor)

---

Top Contributors

[![Ekliptor](https://avatars.githubusercontent.com/u/14872773?v=4)](https://github.com/Ekliptor "Ekliptor (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prompt-cash-prompt-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/prompt-cash-prompt-php-sdk/health.svg)](https://phpackages.com/packages/prompt-cash-prompt-php-sdk)
```

###  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)
