PHPackages                             okaruto/cryptonator - 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. [API Development](/categories/api)
4. /
5. okaruto/cryptonator

ActiveLibrary[API Development](/categories/api)

okaruto/cryptonator
===================

Cryptonator Merchant API

v2.0.0(5y ago)02.5k[1 issues](https://github.com/okaruto/cryptonator/issues)MITPHPPHP ^7.3 | ^8.0CI failing

Since Feb 10Pushed 5y agoCompare

[ Source](https://github.com/okaruto/cryptonator)[ Packagist](https://packagist.org/packages/okaruto/cryptonator)[ RSS](/packages/okaruto-cryptonator/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Okaruto/Cryptonator
===================

[](#okarutocryptonator)

Okaruto/Cryptonator is an alternative implementation of the [Cryptonator.com Merchant API SDK](https://github.com/cryptonator/merchant-api-sdk-php). All API methods needed to use the [Payment API](https://cryptonator.zendesk.com/hc/en-us) are implemented.

[![Minimum PHP Version](https://camo.githubusercontent.com/824c5c4ccb56537db3b3b53bb43d7b8edc6286f3b3d1705525e0821dfd22d27e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e737667)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/309c43d4a0b14980e3477f577ac105774c7bb6fbbe4de9abc490b9d079ef0657/68747470733a2f2f7472617669732d63692e636f6d2f6f6b617275746f2f63727970746f6e61746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/okaruto/cryptonator)[![Coverage Status](https://camo.githubusercontent.com/5d265645b5fc41bee64cb3af958de4d5ca9019c813f8cd25ae6416f4140813fb/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f6b617275746f2f63727970746f6e61746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/okaruto/cryptonator?branch=master)

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

[](#installation)

Just require it with composer:

```
composer require okaruto/cryptonator
```

Usage
-----

[](#usage)

To get the MerchantApi instance:

```
$merchantApi = new Okaruto\Cryptonator\MerchantApi(
    new GuzzleHttp\Client(), // Guzzle HTTP client instance
    'merchant id',           // Cryptonator merchant id
    'merchant secret'        // Cryptonator merchant secret
);
```

Following methods are available:

Get a list of your invoices

```
$merchantApi->listInvoices(
    ?string $invoiceStatus,   // Filter by invoice status, @see Okaruto\Cryptonator\Values\InvoiceStatusValue
    ?string $invoiceCurrency, // Filter by invoice currency, @see Okaruto\Cryptonator\Values\InvoiceCurrencyValue
    ?string $checkoutCurrency // Filter by cryptocurrency, @see Okaruto\Cryptonator\Values\CheckoutCurrencyValue
): InvoiceCollection
```

Get a single invoice (only partial details)

```
$merchantApi->getInvoice(
    string $invoiceId // Cryptonator invoice id
): Invoice
```

Create a new invoice (all details)

```
$merchantApi->createInvoice(
    string $itemName,            // Your item name
    string $checkoutCurrency,    // Checkout cryptocurrency, @see Okaruto\Cryptonator\Values\CheckoutCurrencyValue
    float $invoiceAmount,        // Invoice amount
    string $invoiceCurrency,     // Invoice currency, @see Okaruto\Cryptonator\Values\InvoiceCurrencyValue
    ?string $orderId,            // Your order id
    ?string $itemDescription,    // Item description
    ?string $successUrl,         // Success URL to redirect user
    ?string $failedUrl,          // Failure URL to redirect user
    ?string $confirmationPolicy, // Confirmation policy, @see Okaruto\Cryptonator\Values\ConfirmationPolicyValue
    ?string $language            // Checkout language, @see Okaruto\Cryptonator\Values\LanguageValue
): Invoice
```

Create an URL to redirect the customer for payment over cryptonator checkout page

```
$merchantApi->startPayment(
    string $itemName,         // Your item name
    float $invoiceAmount,     // Invoice amount
    string $invoiceCurrency,  // Invoice currency, @see Okaruto\Cryptonator\Values\InvoiceCurrencyValue
    ?string $orderId,         // Your order id
    ?string $itemDescription, // Item description
    ?string $successUrl,      // Success URL to redirect user
    ?string $failedUrl,       // Failure URL to redirect user
    ?string $language         // Checkout language, @see Okaruto\Cryptonator\Values\LanguageValue
): string
```

Create an invoice out of a HTTP notification

```
$merchantApi->httpNotificationInvoice(
    array $data // Post values of HTTP Notification
): string
```

License
-------

[](#license)

Okaruto/Cryptonator is licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~395 days

Total

3

Last Release

1907d ago

Major Versions

v1.0.1 → v2.0.02021-04-10

PHP version history (2 changes)v1.0.0PHP ^7.1

v2.0.0PHP ^7.3 | ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47495291?v=4)[Okaruto Shirukoto](/maintainers/okaruto)[@okaruto](https://github.com/okaruto)

---

Top Contributors

[![okaruto](https://avatars.githubusercontent.com/u/47495291?v=4)](https://github.com/okaruto "okaruto (17 commits)")

---

Tags

api-clientcryptocurrenciescryptonatorpayment-integrationphpapisdkmerchantcryptocurrencycryptonatorcryptonator.com

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/okaruto-cryptonator/health.svg)

```
[![Health](https://phpackages.com/badges/okaruto-cryptonator/health.svg)](https://phpackages.com/packages/okaruto-cryptonator)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

596.2M35](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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