PHPackages                             sagleft/utopia-cryptonat - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sagleft/utopia-cryptonat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sagleft/utopia-cryptonat
========================

Crypton Donation Library (Utopia Ecosystem)

1.0.1(6y ago)041MITPHPPHP ^7.0

Since Jan 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Sagleft/utopia-cryptonat)[ Packagist](https://packagist.org/packages/sagleft/utopia-cryptonat)[ RSS](/packages/sagleft-utopia-cryptonat/feed)WikiDiscussions master Synced today

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

Utopia Cryptonat
================

[](#utopia-cryptonat)

Crypton Donation Library (Utopia Ecosystem)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
composer require sagleft/utopia-cryptonat
```

Usage
-----

[](#usage)

An instance of the Cryptonat\\Handler object is created based on [UtopiaLib\\Client](https://github.com/Sagleft/utopialib-php):

```
$cryptonat = new Cryptonat\Handler($client);
```

or

```
$cryptonat = new Cryptonat\Handler();
$cryptonat->setUtopiaClient($client);
```

Then try activating the voucher:

```
$voucher_code = 'UTP-P3FH-OJQZ-7XWI-CAVT-LYDW';
$result = $cryptonat->activateVoucher($voucher_code);
echo json_encode($result);
```

response example:

```
{
	"status": "pending",
	"referenceNumber": "367404A95932624C284B16AF1C1EDF1BB0F9CDCA1CC5136B167378BBF933FAD8",
	"amount": 0
}
```

check voucher status by reference number:

`$referenceNumber = '367404A95932624C284B16AF1C1EDF1BB0F9CDCA1CC5136B167378BBF933FAD8'; $result = $cryptonat->checkVoucherStatus($referenceNumber); echo json_encode($result);`

response example:

```
{
	"status": "done",
	"created": "2020-01-14T13:18:21.232",
	"amount": 2,
	"comments": "",
	"direction": 1,
	"trid": "0ZWTT62Z4DO51"
}
```

[![scheme](https://github.com/Sagleft/utopia-cryptonat/raw/master/img/voucher_activation.png)](https://github.com/Sagleft/utopia-cryptonat/raw/master/img/voucher_activation.png)

License
-------

[](#license)

Utopia Cryptonat is licensed under [The MIT License](LICENSE).

---

[![image](https://github.com/Sagleft/Sagleft/raw/master/image.png)](https://github.com/Sagleft/Sagleft/raw/master/image.png)

### 🌐 [Telegram канал](https://t.me/+VIvd8j6xvm9iMzhi)

[](#globe_with_meridians-telegram-канал)

---

[![udocs](https://github.com/Sagleft/ures/raw/master/udocs-btn.png?raw=true)](https://udocs.gitbook.io/utopia-api/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

2307d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33496565?v=4)[Sagleft](/maintainers/Sagleft)[@Sagleft](https://github.com/Sagleft)

---

Top Contributors

[![Sagleft](https://avatars.githubusercontent.com/u/33496565?v=4)](https://github.com/Sagleft "Sagleft (6 commits)")

---

Tags

phplibutopiadonate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sagleft-utopia-cryptonat/health.svg)

```
[![Health](https://phpackages.com/badges/sagleft-utopia-cryptonat/health.svg)](https://phpackages.com/packages/sagleft-utopia-cryptonat)
```

###  Alternatives

[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[utopia-php/messaging

A simple, light and advanced PHP messaging library

23187.5k4](/packages/utopia-php-messaging)

PHPackages © 2026

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