Download the PHP package ashrafi/laravel-wallet without Composer

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

Laravel Wallet Management Package

Wallet Manager can manage user finance with multi accounts and wallets feature.

User can have multi accounts for any purpose of your application. For trading applications you can create a demo account, real account and etc. Each account can has multi wallets to handle your currencies.

Requirements

php: >=7.1

"laravel/framework": "^5.0|^6.0|^7.0|^8.0"

Installation

if you want to publish config you can run:

publish seeders

Add seeders to DatabaseSeeder.php

NOTICE: We use \App\User or \App\Models\User class to relate tables to the user and you can bind it to other class that implement iUser::class and bind it on AppServiceProvider

Next you need to run migrate and db:seed to create database tables and seeds:

NOTICE: This package will autoload with laravel and you don't need to add \Ashrafi\WalletManager\ServiceProvider::class to your bootstrap.

Structure

IMPORTANT Don't use WalletManager models directly and just use their facades: WalletModel, AccountModel, CurrencyModel,...

Usages

List of samples are located in samples folder, but you can follow them with this sort: 'transfer', etc).

Value objects
Adding new transaction type

Each transaction can has seperate table for store related transaction data and validate related data, if so:

  1. Add your new type to transaction_types table.
  2. create new model/class for it and implement iRelatedTransactionTypeValidate class to validate transaction data and implement iRelatedTransactionTypeCreateRecord to insert transaction data to your table.
  3. add new type to wallet_manager.transaction_types.types config file.

Important transaction types

  1. init: This type already is defined and used on create new wallet with init balance.
  2. transfer: This type already is defined and used on transfer a amount from a wallet to an other wallet.
  3. cash: This type already is defined and used on charge or withdraw a cash amount without any extra data. We suggest to you define a new type to handle charge/withdraw transaction to store related data

All versions of laravel-wallet with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
illuminate/support Version ^5.0|^6.0|^7.0|^8.0
illuminate/database Version ^5.0|^6.0|^7.0|^8.0
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 ashrafi/laravel-wallet contains the following files

Loading the files please wait ....