ageekdev/geek-credit

To simplify credit management and in-app purchases in Laravel apps.

dev-main 2024-01-24 22:28 UTC

This package is auto-updated.

Last update: 2024-04-24 23:08:14 UTC


README

Laravel 10.x GitHub Tests Action Status

The Geek Credit Package simplifies credit management and in-app purchases in Laravel apps. With transaction history and customizable features, it's ideal for implementing credit-based systems.

Installation

You can install the package via composer:

composer require ageekdev/geek-credit

You can publish the config file with:

php artisan vendor:publish --provider="Ageekdev\GeekCredit\GeekCreditServiceProvider" --tag="geek-credit-config"

You can publish the migration with:

php artisan vendor:publish --provider="Ageekdev\GeekCredit\GeekCreditServiceProvider" --tag="geek-credit-migrations"

Using Credit

Add the HasCredit trait on App\User model or any model who acts as user in your app.

use Illuminate\Database\Eloquent\Model;
use Ageekdev\GeekCredit\Traits\HasCredit;

class UserModel extends Model
{
    use HasCredit;

    ...
}

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.