ageekdev/geek-credit
Composer 安装命令:
composer require ageekdev/geek-credit
包简介
To simplify credit management and in-app purchases in Laravel apps.
关键字:
README 文档
README
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.
统计信息
- 总下载量: 531
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-12