2017 © Pedro Peláez
 

library wallet

Simple Wallet

image

novatree/wallet

Simple Wallet

  • Saturday, March 11, 2017
  • by novatree
  • Repository
  • 4 Watchers
  • 20 Stars
  • 1,210 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

Laravel Wallet

A simple wallet feature implementation for Laravel., (*1)

Installation

Install the package through Composer., (*2)

Run the Composer require command from the Terminal:, (*3)

composer require novatree/wallet

Now all you have to do is to add the service provider of the package and alias the package. To do this open your config/app.php file., (*4)

Add a new line to the providers array:, (*5)

Novatree\Wallet\WalletServiceProvider::class

And optionally add a new line to the aliases array:, (*6)

'Wallet' => Novatree\Wallet\facades\WalletApiFacades::class

Now you're ready to start using the wallet feature in your application., (*7)

Configuration

Publish the configuration for this package to further create tables. Run the following command:, (*8)

php artisan vendor:publish
php artisan migrate

Usage

To create a new account type for wallet, use createAccountType() method, (*9)

Wallet::createAccountType($accountType, $machineName, $isActive);

To create a transaction type for wallet, use createTransactionType() method, (*10)

Wallet::createTransactionType($transactionType, $status);

To do a transaction in wallet, use createTransaction() method, (*11)

Wallet::createTransaction($account_type_id, $transaction_type_id, $amount, $transaction_date, $user_id, $transaction_status);

To get user's transaction for wallet, use getUserTransaction() method, (*12)

Wallet::getUserTransaction($user_id,$transaction_id,$transaction_date,$account_type,$transaction_type,$transaction_status);

To get type of all account, use getAccountTypes() method. Here $status is a optional parameter. To get all active account $status parameter should be 1, and 0 in case of inactive., (*13)

Wallet::getAccountTypes($status);

To get type of all transactions, use getTransactionTypes() method. Here $status is a optional parameter. To get all active transactions $status parameter should be 1, and 0 in case of inactive., (*14)

Wallet::getTransactionTypes($status);

License

The Laravel Wallet is open-sourced software licensed under the MIT license., (*15)

The Versions

11/03 2017

dev-master

9999999-dev

Simple Wallet

  Sources   Download

MIT

The Requires

 

by Monojit Halder
by Prakash Bharti
by Tejomay Saha

laravel wallet

11/03 2017

1.7

1.7.0.0

Simple Wallet

  Sources   Download

MIT

The Requires

 

by Monojit Halder

laravel wallet

11/03 2017

1.5.1.x-dev

1.5.1.9999999-dev

Simple Wallet

  Sources   Download

MIT

The Requires

 

by Monojit Halder

laravel wallet

11/03 2017

1.6.x-dev

1.6.9999999.9999999-dev

Simple Wallet

  Sources   Download

MIT

The Requires

 

by Monojit Halder

laravel wallet

11/03 2017

1.2.1.x-dev

1.2.1.9999999-dev

wallet system package

  Sources   Download

MIT

by Avatar tejomayonline

10/03 2017

1.5

1.5.0.0

Simple Wallet

  Sources   Download

MIT

The Requires

 

by Monojit Halder

laravel wallet

10/03 2017

1.1.x-dev

1.1.9999999.9999999-dev

Wallet management system for laravel

  Sources   Download

MIT

The Requires

 

by monojit

laravel wallet

09/03 2017

1.0.x-dev

1.0.9999999.9999999-dev

Wallet management system for laravel

  Sources   Download

MIT

The Requires

 

by monojit

laravel wallet