PHP code example of owlgrin / wallet
1. Go to this page and download the library: Download owlgrin/wallet library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
owlgrin / wallet example snippets
Owlgrin\Wallet\Exceptions\CreditsLimitReachedException;
Owlgrin\Wallet\Exceptions\NoCreditsException;
Owlgrin\Wallet\Exceptions\InternalException;
try
{
Wallet::Redeem(5445);
}
catch(Owlgrin\Wallet\Exceptions\NoCreditsException $e)
{
return $e;
}
catch(Owlgrin\Wallet\Exceptions $e)
{
return $e;
}
php artisan config:publish owlgrin/wallet
php artisan wallet:table
php artisan migrate