PHPackages                             mramitict/coinpayment - 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. mramitict/coinpayment

ActivePackage[Payment Processing](/categories/payments)

mramitict/coinpayment
=====================

Coinpayments for Laravel

0.0.4(7y ago)02.1k3[1 issues](https://github.com/mramitict/coinpayment/issues)MITPHPPHP &gt;=5.3

Since Mar 20Pushed 7y ago1 watchersCompare

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

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

Laravel Coinpayments
====================

[](#laravel-coinpayments)

Implementation of most of the CoinPayments functionality.

### [Coinpayments Website](https://www.coinpayments.net/index.php?ref=a458c004de21a18c71849871781be820)

[](#coinpayments-website)

### 1. Install Service Provider

[](#1-install-service-provider)

```
// add directly from the app
$app->register(\Mramitict\LaravelCoinpayments\Providers\LaravelCoinpaymentsServiceProvider::class);
```

OR

All service providers are registered in the `config/app.php` configuration file.

```
'providers' => [
    // Other Service Providers

    \Mramitict\LaravelCoinpayments\Providers\LaravelCoinpaymentsServiceProvider::class,
],
```

### 2. Configure

[](#2-configure)

`.env` configuration

```
COINPAYMENTS_DB_PREFIX=cp_
COINPAYMENTS_MERCHANT_ID=your_unique_merchant_id
COINPAYMENTS_PUBLIC_KEY=generated_public_key
COINPAYMENTS_PRIVATE_KEY=generated_private_key
COINPAYMENTS_IPN_SECRET=your_custom_ipn_secret
COINPAYMENTS_IPN_URL=your_ipn_url
COINPAYMENTS_API_FORMAT=json

```

*Execute `php artisan vendor:publish` for the complete config file.*

Config: `coinpayments.php`

```
return array(

    // prefix to each of the tables in the database
    'database_prefix' => env('COINPAYMENTS_DB_PREFIX', 'cp_'),

    'merchant_id' => env('COINPAYMENTS_MERCHANT_ID'),

    // Your API public key associated with your coinpayments account
    'public_key' => env('COINPAYMENTS_PUBLIC_KEY'),

    // Your API private key associated with your coinpayments account
    'private_key' => env('COINPAYMENTS_PRIVATE_KEY'),

    // This is used to verify that an IPN is from us, use a good random string nobody can guess.
    'ipn_secret' => env('COINPAYMENTS_IPN_SECRET'),

    // URL for your IPN callbacks. If not set it will use the IPN URL in your Edit Settings page if you have one set.
    'ipn_url' => env('COINPAYMENTS_IPN_URL'),

    // The format of response to return, json or xml. (default: json)
    'format' => env('COINPAYMENTS_API_FORMAT', 'json'),

    // ALL logs all requests, ERROR logs only errors, and NONE never
    'log_level' => Log::LEVEL_ERROR,
);
```

### 3. Setup Database

[](#3-setup-database)

Run the migration to install the database tables

```
php artisan migrate
```

### 4. Usage

[](#4-usage)

Simple transaction

```
\Coinpayments::createTransactionSimple($cost, $currency_base, $currency_received, $extra_details);
```

IPN validation

```
try {
    \Coinpayments::validateIPNRequest($request);

    // do soemthing with the completed transaction
} catch (\Exception $e) {

    // transaction not completed.
}
```

### 5. Logging

[](#5-logging)

Adjust the logging in the config file by selecting either `LEVEL_NONE`, `LEVEL_ERROR` or `LEVEL_ALL`.

Logs will be saved into the database under `$prefix . 'log'`.

### Contributing

[](#contributing)

Feel free to make a pull request at any time. Any help is appreciated (Y)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

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

Every ~101 days

Total

4

Last Release

2669d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e70ab3c44e9afabc95ecf1955d60b2d2a267a10870e9ddf517088e1c275e9cb?d=identicon)[mramitict](/maintainers/mramitict)

---

Top Contributors

[![mramitict](https://avatars.githubusercontent.com/u/12809442?v=4)](https://github.com/mramitict "mramitict (7 commits)")

---

Tags

coinpayments-apilaravellaravellumencoinpayments

### Embed Badge

![Health badge](/badges/mramitict-coinpayment/health.svg)

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

###  Alternatives

[kevupton/laravel-coinpayments

Coinpayments for Laravel

3521.7k](/packages/kevupton-laravel-coinpayments)[anandsiddharth/laravel-paytm-wallet

Integrate paytm wallet easily with this package. This package uses official Paytm PHP SDK's

104421.1k7](/packages/anandsiddharth-laravel-paytm-wallet)[cviebrock/laravel-mangopay

Laravel/Lumen wrapper for the office Mangopay SDK library

1971.8k](/packages/cviebrock-laravel-mangopay)

PHPackages © 2026

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