PHPackages                             cryental/laravel-selly - 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. cryental/laravel-selly

ActiveLibrary[Payment Processing](/categories/payments)

cryental/laravel-selly
======================

Laravel PHP library for Selly's API

1.2(3y ago)011MITPHPPHP ^7.1CI failing

Since Apr 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Cryental/laravel-selly)[ Packagist](https://packagist.org/packages/cryental/laravel-selly)[ Docs](https://github.com/McCaulay/laravel-selly)[ RSS](/packages/cryental-laravel-selly/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Laravel Selly PHP API
=====================

[](#laravel-selly-php-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5d758c9915879809164c0bfe6d5e2a9edfae7bad7345bc9be7da0939bb6c429d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d636361756c61792f6c61726176656c2d73656c6c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mccaulay/laravel-selly)[![Build Status](https://camo.githubusercontent.com/9b8a82b27f27d6d2179ece2fb533c152461eb97cbccc1a2053a04004fab4e799/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d636361756c61792f6c61726176656c2d73656c6c792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mccaulay/laravel-selly)[![Quality Score](https://camo.githubusercontent.com/5672ab681903812a636e94fba34868ddf1e06e9cc7812a7eb1259c2c189b07d8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d636361756c61792f6c61726176656c2d73656c6c792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mccaulay/laravel-selly)[![Total Downloads](https://camo.githubusercontent.com/ddfbbb2c74bf0e3975795711751c8783f374301d51aa8c55551e715b22b2fcae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d636361756c61792f6c61726176656c2d73656c6c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mccaulay/laravel-selly)

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

[](#installation)

You can install the package via composer:

```
composer require mccaulay/laravel-selly
```

Environment Variables
---------------------

[](#environment-variables)

```
SELLY_EMAIL=your@email.com
SELLY_API_KEY=yourApiKey
SELLY_WEBHOOK_SECRET=yourWebhookSecret

```

Usage
-----

[](#usage)

### Creating a payment

[](#creating-a-payment)

```
use McCaulay\Selly\Payment;

$payment = new Payment();
$order = $payment->setTitle('Test Product')
    ->setGateway('Bitcoin')
    ->setEmail('example@example.com')
    ->setValue(10)
    ->setCurrency('USD')
    ->setReturnUrl(secure_url('/'))
    ->setWebhookUrl(secure_url('/example/webhook'))
    ->setWhiteLabel(true)
    ->setIpAddress($request->ip())
    ->save();
$orderId = $order->getId(); // Get the created order id
```

### Get all coupons

[](#get-all-coupons)

```
use McCaulay\Selly\Coupon;
$coupons = Coupon::all();
```

### Get an order from a webhook request

[](#get-an-order-from-a-webhook-request)

```
use McCaulay\Selly\Facades\Selly;

$order = Selly::webhook($request);
$orderId = $order->getId(); // Get the webhook order id
```

### Convert a value from a currency to Satoshi

[](#convert-a-value-from-a-currency-to-satoshi)

```
use McCaulay\Selly\Facades\Selly;

$satoshi = Selly::toSatoshi('0.04710219');
// $satosi = 4710219;
```

### Convert a value from Satoshi to a currency

[](#convert-a-value-from-satoshi-to-a-currency)

```
use McCaulay\Selly\Facades\Selly;

$satoshi = Selly::fromSatoshi(4710219);
// $satosi = '0.04710219';
```

### Get an order by id

[](#get-an-order-by-id)

```
use McCaulay\Selly\Facades\Selly;

$order = Selly::order('174e2e74-1939-351b-aa2b-6921f11a3d82');
```

```
use McCaulay\Selly\Order;

// Another way to get order by id
$order = Order::find('174e2e74-1939-351b-aa2b-6921f11a3d82');
```

Credits
-------

[](#credits)

- [McCaulay Hudson](https://github.com/mccaulay)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Every ~0 days

Total

3

Last Release

1188d ago

### Community

Maintainers

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

---

Top Contributors

[![Cryental](https://avatars.githubusercontent.com/u/44664655?v=4)](https://github.com/Cryental "Cryental (3 commits)")

---

Tags

laravelpayment processingpaymentpaypalbitcoinlitecoinrippleethereumbitcoin-cashsellyselly.ggmccaulaylaravel-selly

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cryental-laravel-selly/health.svg)

```
[![Health](https://phpackages.com/badges/cryental-laravel-selly/health.svg)](https://phpackages.com/packages/cryental-laravel-selly)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3720.4k](/packages/linkxtr-laravel-qrcode)[plisio/plisio-api-php

156.8k](/packages/plisio-plisio-api-php)

PHPackages © 2026

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