farajzadeh / gems-counter

This package counts the number of gems in your game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gems Counter

This package counts the number of gems in your game.

Quick Installation

Add this lines to your composer.json

{
    ....
    
    "repositories": [
        ....
        {
            "url": "https://github.com/farajzadeh/gems-counter.git",
            "type": "git"
        }
    ],
}

Then run this command

$ composer require farajzadeh/gems-counter "@dev"

How to use

Just add HasGems trait to your user model.

Then get number of user gems by gems_count attribute and create transaction with createTransaction($amount, $tag) function.

Testing

composer test

About

This package counts the number of gems in your game


Languages

Language:PHP 100.0%