2017 © Pedro Peláez
 

library roowallet

Digital Wallet for Laravel

image

patosmack/roowallet

Digital Wallet for Laravel

  • Monday, July 17, 2017
  • by patosmack
  • Repository
  • 2 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

RooWallet

Wallet Package for Laravel that allows you to maintain credits for your users., (*1)

Installation

To install the package, include the following in your composer.json., (*2)

composer require patosmack/roowallet

And then include the following service provider in your app.php., (*3)

Patosmack\RooWallet\Providers\RooWalletServiceProvider::class,

Also add Alias., (*4)

'RooWallet' => Patosmack\RooWallet\Facades\RooWallet::class,

Lastly, publish the config., (*5)

php artisan vendor:publish --provider="Patosmack\RooWallet\Providers\RooWalletServiceProvider"

NOTE: Remove database Migrations Files before publising, (*6)

  • create_wallet_currencies_table.php
  • create_wallets_table.php
  • create_wallet_transactions_table.php

Methods


Currency

getCurrencyList()
  • Response: Currency iso Array
getCurrency($iso)
  • Response: WalletCurrency Model or null
addCurrency($iso, $name, $symbol, $conversion_rate, $enabled = 0)
  • Response: True or False
updateCurrency($iso, $name, $symbol, $conversion_rate, $enabled = 0)
  • Response: True or False

Wallet

getWallet($user_id)
  • Response: Wallet Model or null
createWallet($user_id, $currency_iso)
  • Response: True or False

Transaction

getTransactions($user_id)
  • Response: WalletTransaction Model or array()
funds($user_id)
  • Response: User balance -> decimal(13, 4)
deposit($user_id, $amount, $refence_id = null, $reference_description = null, $token = '')
  • Response: True or False
canWithdraw($user_id, $amount)
  • Response: True or False
withdraw($user_id, $amount, $refence_id = null, $reference_description = null, $token = '')
  • Response: True or False
getCredits($user_id)
  • Response: decimal(13, 4)
getDebits($user_id)
  • Response: decimal(13, 4)

The Versions

17/07 2017

dev-master

9999999-dev

Digital Wallet for Laravel

  Sources   Download

MIT

The Requires

  • ext-curl *

 

by Patricio Alvarez

money wallet ocurrency

17/07 2017

1.0.1

1.0.1.0

Digital Wallet for Laravel

  Sources   Download

MIT

The Requires

  • ext-curl *

 

by Patricio Alvarez

money wallet ocurrency