定制 ageekdev/geek-credit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ageekdev/geek-credit

Composer 安装命令:

composer require ageekdev/geek-credit

包简介

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

README 文档

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.

统计信息

  • 总下载量: 531
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-12