Download the PHP package redberryproducts/laravel-crypto-wallet without Composer

On this page you can find all versions of the php package redberryproducts/laravel-crypto-wallet. 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-wallet

Laravel Crypto Wallet

Table of Contents

  1. Introduction
  2. Installation
  3. Configuration
  4. Usage
  5. Testing
  6. Contributing

Introduction

Laravel Crypto Wallet is a flexible Laravel package that provides a unified factory class for interacting with various crypto wallet drivers. Currently, it supports Bitgo, with plans to add more drivers and introduce a unified facade in future releases.

Our Future Plan:

Enhance Bitgo support, add more drivers, unify the Wallet facade, offer driver selection via configuration—and still let you work directly with each driver.

Note: The unified facade is not yet available, but it will be introduced in a future release

Currently, we support Bitgo for operations such as:

The package uses a clear, fluent API and is fully testable, making it simpler to integrate cryptocurrency-related features into your Laravel application.

Installation

  1. Install via Composer:

Bitgo Express Docker

To run Bitgo Express locally using Docker, you can use the following commands:

For more information on Bitgo Express Docker, refer to the official Bitgo Express Docker documentation.

Configuration

By default, the configuration for the Bitgo driver is included under the drivers.bitgo key. Once published, you’ll find the config at config/cryptowallet.php. Below is an example of what the Bitgo config might look like:

.env Example:

Adjust these environment variables according to your needs.

Usage

Bitgo Driver

All Bitgo functionality is encapsulated within the Bitgo driver, which is used by default when calling WalletManager::bitgo().

Wallet Factory

The core entry point for all wallet-related activities is the WalletManager class. You can call static methods (like bitgo()) to instantiate a specific driver. For example:

Optionally, you can specify a coin and/or wallet ID:

Generating a Wallet

Getting a Wallet

Listing Wallets

Generating Addresses

Getting Wallet Transfers

Sending Transactions

Send to multiple recipients:

Getting Maximum Spendable

Consolidating Wallet Balances

Adding Webhooks

When you generate a wallet, you can easily attach a webhook:

Exchange Rates

You can easily fetch current exchange rates using the ExchangeRateManager.

Currently, we provide a Bitgo driver implementation.

Fetch All Exchange Rates

Fetch Exchange Rates for a Specific Coin

Testing

We use Pest PHP to ensure all functionalities work as expected. You can find our test files under tests/. To run the tests:

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/someFeature)
  3. Make your changes
  4. Write or update tests
  5. Commit your changes (git commit -m 'feat: Add some feature')
  6. Push to the branch (git push origin feature/someFeature)
  7. Create a Pull Request

We welcome all contributions that help improve this package!


All versions of laravel-crypto-wallet with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-readline Version *
guzzlehttp/guzzle Version >=7.4
illuminate/contracts Version >=9.0
illuminate/support Version >=9.11
spatie/laravel-data Version ^4.11
spatie/laravel-package-tools Version >=1.9.2
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 redberryproducts/laravel-crypto-wallet contains the following files

Loading the files please wait ....