PHPackages                             greencryptopay/greencryptopay-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. greencryptopay/greencryptopay-php

ActiveLibrary[Payment Processing](/categories/payments)

greencryptopay/greencryptopay-php
=================================

Greencryptopay library for PHP

v1.0.4(2y ago)030MITPHPPHP ^7.3 || ^8.0

Since Aug 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/GreenCryptoPay/greencryptopay-php)[ Packagist](https://packagist.org/packages/greencryptopay/greencryptopay-php)[ RSS](/packages/greencryptopay-greencryptopay-php/feed)WikiDiscussions master Synced today

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

Greencryptopay library for PHP
==============================

[](#greencryptopay-library-for-php)

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

[](#installation)

> **Requires:**

- **PHP version: ^7.3**
- **PHP extensions: guzzlehttp/guzzle, phpunit/phpunit, fakerphp/faker**

You can install the package via composer:

```
composer require greencryptopay/greencryptopay-php
```

Tests

```
vendor/bin/phpunit --testsuite="tests"
```

Standard API
------------

[](#standard-api)

- [Standard API](https://greencryptopay.com/ru/standard)

> **Getting Started:**

```

    require "vendor/autoload.php";

    use GcpSdk\Api;

    // Standard API
    $standardApi = Api::make('standard');

    // Standard API testnet
    $standardApi = Api::make('standard', true);

    // Sign up
    if (empty($merchantId) || empty($secretKey)) {
          $response = $standardApi->merchant('percent', 'https://example.com/callback');
          $merchantId = $response['merchant_id'];
          $secretKey = $response['secret_key'];
    }

    $standardApi->setMerchantId($merchantId);
    $standardApi->setSecretKey($secretKey);
```

> **Sign up:**

NameParametersValidationDescriptionmerchant- string $feeType
- string $callbackUrl

- Enum: \[percent, fix\]
- Max: 200

- Fee type
- URL to send notifications about payments

> **Operations:**

NameParametersValidationDescriptionpaymentAddress- string $currency
- string $callbackUrl
- string $orderId
- string $currencyFrom
- string $amountFrom

- Enum: \[btc\]
- Max: 200
- Max: 50
- Enum: \[usd\]
- —

- Currency
- URL to send notifications about payments
- Order identifier in your system
- Currency to convert from
- Amount to convert

withdraw- string $currency
- array $recipients

- Enum: \[btc\]
- —

- Currency
- Array structure: \[\['address' =&gt; 'Recipient address', 'amount' =&gt; 'Recipient's amount'\]\]

withdrawAll- string $currency
- string $recipientAddress

- Enum: \[btc\]
- —

- Currency
- Recipient address

> **Stats:**

NameParametersValidationDescriptionmerchantState- string $currency

- Enum: \[btc\]

- Currency

merchantPaymentAddress- string $currency
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Address creation timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Address creation timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

merchantIncomingPayments- string $currency
- string / null $paymentAddress
- string / null $txid
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- —
- —
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Show only payments to specific payment address
- Show only payments with specific transaction
- Payment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

merchantWithdrawals- string $currency
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Withdrawal timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Withdrawal timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

paymentAddressCallbacks- string $currency
- string $paymentAddress
- string / null $txid
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- —
- —
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Payment address
- Show only payment callbacks with specific transaction
- Callback timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Callback timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

paymentAddressState- string $currency
- string $paymentAddress

- Enum: \[btc\]
- —

- Currency
- Payment address

Transfer API
------------

[](#transfer-api)

- [Transfer API](https://greencryptopay.com/ru/transfer)

> **Getting Started:**

```

    require "vendor/autoload.php";

    use GcpSdk\Api;

    // Transfer API
    $transferApi = Api::make('transfer');

    // Transfer API testnet
    $transferApi = Api::make('transfer', true);

    // Sign up
    if (empty($merchantId) || empty($secretKey)) {
          $response = $transferApi->merchant('percent', 'https://example.com/callback');
          $merchantId = $response['merchant_id'];
          $secretKey = $response['secret_key'];
    }

    $transferApi->setMerchantId($merchantId);
    $transferApi->setSecretKey($secretKey);
```

> **Sign up:**

NameParametersValidationDescriptionmerchant- string $feeType
- string $callbackUrl

- Enum: \[percent, fix\]
- Max: 200

- Fee type
- URL to send notifications about payments

> **Operations:**

NameParametersValidationDescriptionpaymentAddress- string $currency
- string $recipientAddress
- string $feeType
- string $callbackUrl
- string $orderId
- string $currencyFrom
- string $amountFrom

- Enum: \[btc\]
- —
- Enum: \[percent, fix\]
- Max:200
- Max:50
- Enum: \[usd, rub, try, eur, zar, gbp, uah, aud, brl, pln\]
- —

- Currency
- Recipient address
- Fee type
- URL to send notifications about payments
- Order identifier in your system
- Currency to convert from
- Amount to convert

> **Stats:**

NameParametersValidationDescriptionpaymentAddressState- string $currency
- string $paymentAddress

- Enum: \[btc\]
- —

- Currency
- Show only payments to specific payment address

paymentAddressPayments- string $currency
- string $paymentAddress
- string / null $txid
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- —
- —
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Payment address
- Show only specific transaction payments
- Payment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

paymentAddressCallbacks- string $currency
- string $paymentAddress
- string / null $txid
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- —
- —
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Payment address
- Show only payment callbacks with specific transaction
- Payment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

merchantState- string $currency

- Enum: \[btc\]

- Currency

merchantPaymentAddress- string $currency
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Address creation timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Address creation timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

merchantPayments- string $currency
- string / null $txid
- string / null $fromTimestamp
- string / null $toTimestamp
- int / null $limit
- int / null $page
- string / null $order

- Enum: \[btc\]
- —
- Timestamp in UTC
- Timestamp in UTC
- Min:1, Max:200
- Min:1
- Enum: \[asc, desc\]

- Currency
- Show only specific transaction payments
- Payment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")
- Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")
- Number of records in the response
- Page number
- Records order ascending or descending

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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 ~98 days

Total

3

Last Release

863d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/108524844?v=4)[Green Crypto Processing](/maintainers/GreenCryptoPay)[@GreenCryptoPay](https://github.com/GreenCryptoPay)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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