PHPackages                             samirdjelal/cryptocurrency - 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. samirdjelal/cryptocurrency

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

samirdjelal/cryptocurrency
==========================

Cryptocurrency Toolkit for Blockchain ₿

00PHPCI failing

Since Jun 25Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Cryptocurrency
==============

[](#cryptocurrency)

Note: this package is not ready for production.
-----------------------------------------------

[](#note-this-package-is-not-ready-for-production)

[![Latest Version on Packagist](https://camo.githubusercontent.com/675391bd60906543896c6955ceeb4d7698b474b03dae5c6fb1cf8ab95d399ae2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d6972646a656c616c2f63727970746f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samirdjelal/cryptocurrency)[![Build Status](https://camo.githubusercontent.com/c86fdaa19dfc0465b4e0ac31f053b0fb2489ef643f0ef06aaec775aa47afda8d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73616d6972646a656c616c2f63727970746f63757272656e63792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/samirdjelal/cryptocurrency)[![Quality Score](https://camo.githubusercontent.com/0302e284670d132e1a2f5870a6d7dd3f3ddd0f4846411fbd90d78ac66ea9d5b0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73616d6972646a656c616c2f63727970746f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/samirdjelal/cryptocurrency)[![Total Downloads](https://camo.githubusercontent.com/d975df08097ae777130f6e2030f140f0f1d2778f79286a0d42a0a3b0c69fb6e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d6972646a656c616c2f63727970746f63757272656e63792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samirdjelal/cryptocurrency)

Cryptocurrency toolkit let you integrate cryptocurrencies payment system into your existing laravel application.

Currently it support bitcoin.

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

[](#installation)

You can install the package via composer:

```
composer require samirdjelal/cryptocurrency
```

Add the following fields to your `.env` file.

```
BLOCKCHAIN_API_KEY=
BLOCKCHAIN_XPUB=
CALLBACK_SECRET_KEY=

```

Usage
-----

[](#usage)

```
// Get the current price of 1 BTC in USD.
Cryptocurrency::bitcoin()->price();

// Generate a unique bitcoin address for a specific order id.
Cryptocurrency::bitcoin()->orderId('abcd11')->address();

// The gap between the last used address and the last generated address.
Cryptocurrency::bitcoin()->gap();

// Get information about a callback that already exists for a specific orderId.
Cryptocurrency::bitcoin()->orderId('abcd11')->callback();

// Check if a payment is made.
Cryptocurrency::bitcoin()->orderId('abcd11')->check();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Samir Djelal](https://github.com/samirdjelal)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25848885?v=4)[Samir Djelal](/maintainers/samirdjelal)[@samirdjelal](https://github.com/samirdjelal)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/samirdjelal-cryptocurrency/health.svg)

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

PHPackages © 2026

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