Download the PHP package stephenjude/laravel-wallet without Composer
On this page you can find all versions of the php package stephenjude/laravel-wallet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stephenjude/laravel-wallet
More information about stephenjude/laravel-wallet
Files in stephenjude/laravel-wallet
Package laravel-wallet
Short Description A simple wallet implementation for Laravel
License MIT
Homepage https://github.com/stephenjude/laravel-wallet
Informations about the package laravel-wallet
Laravel Wallet
A simple wallet implementation for Laravel.
Learn More
- A Simple Wallet Implementation for Laravel - Laravel News
- Interfaces and Traits: How to Use Them in Laravel Packages - Laravel Daily
- Laravel Virtual Wallet with Coupons: 3 Packages Demo - Laravel Daily
Installation
You can install the package via composer:
You can publish and run the migrations with:
[//]: # ()
[//]: # ()
Usage
Prepare User Model
Deposit
Withdraw
Balance
Exceptions
InvalidAmountException
The InvalidAmountException
is thrown whenever the deposit or withdrawal amount is a negative numeric value or zero.
InsufficientFundException
The InsufficientFundException
is thrown whenever the withdrawal amount is less than the user's wallet balance.
Alternative Package
If you are looking for somthing much bigger and elaborate checkout Bavix Laravel Wallet.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- stephenjude
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-wallet with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0|^10.0|^11.0