Download the PHP package pashaster12/laravel-crypto-stats without Composer

On this page you can find all versions of the php package pashaster12/laravel-crypto-stats. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-crypto-stats

laravel-crypto-stats

StyleCI Build Status Scrutinizer Code Quality License Total Downloads Latest Stable Version Ethereum donate button

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.

It is a PHP wrapper under the https://chain.so and https://etherscan.io APIs.

Docs

Features list

Package provides the following features:

Supported cryptocurrencies:

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:

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

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:

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

Laravel < 5.5

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

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

Laravel >= 5.5

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

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:

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

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

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

Available package's methods usage examples:

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

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

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

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 :blush:

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

Or you can use WebMoney transactions to these wallets:

:heart: Thank you!


All versions of laravel-crypto-stats with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
guzzlehttp/guzzle Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pashaster12/laravel-crypto-stats contains the following files

Loading the files please wait ....