PHPackages                             pashaster12/laravel-crypto-stats - 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. pashaster12/laravel-crypto-stats

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

pashaster12/laravel-crypto-stats
================================

Package allows to get the cryptocyrrency wallets information

1.0.0(7y ago)2651MITPHPPHP &gt;=7.1.0

Since Aug 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Pashaster12/laravel-crypto-stats)[ Packagist](https://packagist.org/packages/pashaster12/laravel-crypto-stats)[ RSS](/packages/pashaster12-laravel-crypto-stats/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

laravel-crypto-stats
====================

[](#laravel-crypto-stats)

[![StyleCI](https://camo.githubusercontent.com/0074cb35d02bb4df8e932594121f1a372f7600c333c84b26801d9839d3f1c932/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134353732323839372f736869656c64)](https://styleci.io/repos/145722897)[![Build Status](https://camo.githubusercontent.com/8bb0ff28d674ec4f475bf55c2fffcbed3aa273f692792440a332671f4eec81e4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50617368617374657231322f6c61726176656c2d63727970746f2d73746174732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Pashaster12/laravel-crypto-stats/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c43683cca84e160c98c4f6e3441fd9247c1cf601b627698f9b2df17c1158ba58/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50617368617374657231322f6c61726176656c2d63727970746f2d73746174732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Pashaster12/laravel-crypto-stats/?branch=master)[![License](https://camo.githubusercontent.com/9dd86d4c39fc97c3e9becd03f92bbec1f238a77595a6c029afb88e199bd3df23/68747470733a2f2f706f7365722e707567782e6f72672f70617368617374657231322f6c61726176656c2d63727970746f2d73746174732f6c6963656e73652e737667)](https://packagist.org/packages/pashaster12/laravel-crypto-stats)[![Total Downloads](https://camo.githubusercontent.com/e1cfc7bd46c651b34ca4dd2635309173b562c267a4b049d417ca6a0e07531ab7/68747470733a2f2f706f7365722e707567782e6f72672f70617368617374657231322f6c61726176656c2d63727970746f2d73746174732f646f776e6c6f6164732e737667)](https://packagist.org/packages/pashaster12/laravel-crypto-stats)[![Latest Stable Version](https://camo.githubusercontent.com/aa11d448d0132f8fc82eff95e8e1c68e8f337f9382944eb513034da36b97040e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70617368617374657231322f6c61726176656c2d63727970746f2d73746174732e737667)](https://packagist.org/packages/pashaster12/laravel-crypto-stats)[![Ethereum donate button](https://camo.githubusercontent.com/05d7265c44181323aa6002c5c8e1e16b30ec004a0f8f35331278295a77ac2963/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f657468657265756d2d646f6e6174652d626c75652e737667)](https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=0xf55b7BD86bc72b08427E7b5748E1eDD05f1AC8bd "Donate once-off to this project using Ethereum")

This is a Laravel 5 package allows to get the cryptocyrrency wallets information. You can use it for monitoring wallets' information in different Laravel applications, for example, [like this](https://github.com/Pashaster12/cryptoStatsApp).

It is a PHP wrapper under the  and  APIs.

### Docs

[](#docs)

- [Features list](#features-list)
- [Installation](#installation)
- [Configuration](#configuration)
- [Code examples](#code-examples)
- [Package code structure](#package-code-structure)
- [Information for contributors](#information-for-contributors)
- [Futher plans](#futher-plans)
- [Donations](#donations)

Features list
-------------

[](#features-list)

Package provides the following features:

- Validation cryptocurrency wallet address.
- Get the current cryptocurrency wallet balance.
- Generate links to block explorers where you can show the information about the cryptocurrency wallet.

Supported cryptocurrencies:

- ETH
- BTC
- LTC
- DOGE
- DASH
- ZEC

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

[](#installation)

Installations steps for the laravel-crypto-stats Laravel package are standard for all composer packages.

Add the latest package version in your composer.json by executing the command:

```
composer require pashaster12/laravel-crypto-stats
```

Or you can add it to your composer.json manually with the next `require` section edits:

```
"require": {
    ...
    "pashaster12/laravel-crypto-stats": "*",
    ...
},

```

And then just run the following command in your project's root folder in terminal for updating the dependencies of your project and re-generating the composer autoload files:

```
composer update
```

Good! :simple\_smile: It's time to recognize the package code in your Laravel application. For this do the following steps:

### Laravel &lt; 5.5

[](#laravel--55)

Register the provider directly in your app configuration file config/app.php `config/app.php` in the `providers` section:

```
'providers' => [
    // ...

	  LaravelCryptoStats\LaravelCryptoStatsProvider::class,
]
```

Add the facade aliases in the same file in the `aliases` section:

```
'aliases' => [
	  ...
    'CryptoStat'      => LaravelCryptoStats\LaravelCryptoStatsFacade::class,
]
```

### Laravel &gt;= 5.5

[](#laravel--55-1)

For Laravel versions more than 5.5 there is a package `Service Provider` and `Facade` auto-detecting mechanizm in the framework. And the needed package settings were made for its realization, so you do not have to add `Service Provider` and `Facade` alias to the config `config/app.php` manually.

Configuration
-------------

[](#configuration)

After the package installation into your Laravel app you may move its config file to your app's `config` directory for tuther customization with the following command:

```
php artisan vendor:publish --provider=LaravelCryptoStats\LaravelCryptoStatsProvider
```

At the current moment package config file which named `laravel_crypto_stats.php` consists of the following parameters:

```
/*
 * Default cryptocurrencies which user want to use in the application
 */
'currencies' => [
    'ETH',
    'LTC',
    'BTC',
],

 /*
 * API key for Etherscan connection
 */
'etherscan_api_key' => env('ETHERSCAN_API_KEY'),
```

The `currencies` array consists of the cryptocurrencies which are available by default. You can use them for viewing them at your application's UI, for example.

> Important! `currencies` config values must be fit to the list of the package supported currencies, owervise you'll got the exception.

The `etherscan_api_key` parameter consists of the API key for accessing the `etherscan.io` API. It's just a link to the `ETHERSCAN_API_KEY` variable in the `.env` file. So create it and move the needed value there or place it in the `etherscan_api_key` config directly.

Code examples
-------------

[](#code-examples)

> For using package methods in your Laravel application code you should firstly include it in your class with the next code:

```
use CryptoStat;
```

### Available package's methods usage examples:

[](#available-packages-methods-usage-examples)

```
// get the list of the default currencies
$currencies = CryptoStat::getCurrencies(); //array in format [ 'ETH', 'BTC', ... ]

// validate the cryptocurrency wallet address
CryptoStat::setCurrency($this->currency);
$is_valid = CryptoStat::validateAddress($value); //bool

// get the cryptocurrency wallet balance
// method returns float number with the 8 decimal digits (chain.so API response format)
CryptoStat::setCurrency($wallet->currency);
$new_balance = CryptoStat::getBalance($wallet->address); //float

// generate links to block explorers
CryptoStat::setCurrency($wallet['currency']);
$block_explorer_link = CryptoStat::getBlockExplorerLink($wallet['address']); //string
```

Package code structure
----------------------

[](#package-code-structure)

As noticed below, package is a Laravel 5 PHP wrapper for these APIs which allows to get different information about the cryptocurrency wallets:

-
-

So, there are API connectors classes in the `src\Connectors` folder which extends the abstract class `AbstractConnector`. So, if you want to add the new methods, write them into the `AbstractConnector` firstly.

If you want to add the new API connector, add the corresponging class to the `src\Connectors` folder and reorder all the abstract methods from the `AbstractConnector`.

Also you should inject them into the Laravel `Service Container` in the `LaravelCryptoStatsServiceProvider` and tagged them with the `laravel-crypto-stats.connectors` tag for API connector auto-checking in the `register` method. Also dublicate them in the `provides` method, because the `LaravelCryptoStatsServiceProvider` is `deferred`.

All general classes which needed for package's main classeswork locate in the `src\Services` folder.

Information for contributors
----------------------------

[](#information-for-contributors)

Package is open for contributing. If you want to become the contributor, send your pull requets with code changes and write issues with your propositions and bug lists.

Futher plans
------------

[](#futher-plans)

In the future the following features will planned and would be added:

- Feature and unit tests
- New API connectors and methods

Donations
---------

[](#donations)

This package has been made with a lots of unsleeped nights and cups of coffee. So, I think, it would be fair to treat me a coffee if my work proved to be of use to you 😊

You can show your respect by sending **Ethereum** to this address: `0xf55b7BD86bc72b08427E7b5748E1eDD05f1AC8bd`

Or you can use `WebMoney` transactions to these wallets:

- **WMR (RUB currency)**: `R192612541367`
- **WMZ (USD currency)**: `Z174150497388`

❤️ Thank you!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

4

Last Release

2819d ago

Major Versions

0.0.3 → 1.0.02018-08-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b1ea2853e1a3310a91a5afb777d2140c63f9d2caa40a100336d2fea699fde29?d=identicon)[Pashaster12](/maintainers/Pashaster12)

---

Top Contributors

[![Pashaster12](https://avatars.githubusercontent.com/u/18751246?v=4)](https://github.com/Pashaster12 "Pashaster12 (9 commits)")

---

Tags

laravelbitcoinbtclitecoindogecoinwalletcryptocurrencyethereumethdashDOGEltczeczcash

### Embed Badge

![Health badge](/badges/pashaster12-laravel-crypto-stats/health.svg)

```
[![Health](https://phpackages.com/badges/pashaster12-laravel-crypto-stats/health.svg)](https://phpackages.com/packages/pashaster12-laravel-crypto-stats)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[kornrunner/ccxt

A PHP cryptocurrency trading library with support for more than 90 bitcoin/altcoin exchanges

371.6k](/packages/kornrunner-ccxt)[plisio/plisio-api-php

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

PHPackages © 2026

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