PHPackages                             ahmedtofaha/meow-points - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ahmedtofaha/meow-points

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ahmedtofaha/meow-points
=======================

Laravel Points System Package

v1.0.2(3y ago)116[4 PRs](https://github.com/ahmedtofaha10/meow-points/pulls)MITPHPPHP &gt;=7.3

Since Sep 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ahmedtofaha10/meow-points)[ Packagist](https://packagist.org/packages/ahmedtofaha/meow-points)[ Docs](https://github.com/ahmedtofaha10/meow-points)[ RSS](/packages/ahmedtofaha-meow-points/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (11)Versions (8)Used By (0)

MEOW POINTS
===========

[](#meow-points)

### laravel package for points system

[](#laravel-package-for-points-system)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b1bac17a23bd08a7987bd0a887d65693a1fe56105a7f09ec17598d5be031e36e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61686d6564746f666168612f6d656f772d706f696e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ahmedtofaha/meow-points)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c0437939bb8a0c9531c1a98ab7d9b2f5a8b4cb8b0e4cc700e5a4ae800ac04ded/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61686d6564746f666168612f6d656f772d706f696e74732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/ahmedtofaha/meow-points/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1af01ec1682c0f661d38c7db3f0fd1bb6a4901e5fc9a5c47ef29aebe1cfb8485/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61686d6564746f666168612f6d656f772d706f696e74732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/ahmedtofaha/meow-points/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a307b9f02a0093d62006a602de04135ffa96ff6c4437218cff92e377af02fae6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61686d6564746f666168612f6d656f772d706f696e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ahmedtofaha/meow-points)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ahmedtofaha/meow-points
```

You can publish all we need and run the migrations with:

```
php artisan vendor:publish --provider="AhmedTofaha\MeowPoints\MeowPointsServiceProvider"
php artisan migrate
```

This is the contents of the published config file:

```
# meow-points.php
return [
    /*
    determine how much points equal to money amount
    @type float
    */
    'amount' => 10.0,
];
```

Usage
-----

[](#usage)

### points system

[](#points-system)

```
# use the trait in your model
class User extends Model
{
    use HasPoints;
}
# then you can use the following methods for this model
$user = new User();
$user->addPoints(100); // add 100 points to the user
$user->subPoints(100); // remove 100 points from the user
# and you can use for method after add or sub points
# to determine the points source or reason for the points change
$user->addPoints(100)->for($prize); // add 100 points to the user for the prize
$user->subPoints(100)->for($payment); // remove 100 points from the user for the payment
# you can get the points history for the user
$user->points; // return collection of points history
# you can get the points history for the user with pagination
$user->points()->paginate(10); // return collection of points history with pagination
# get the points  model has
$user->current_points; // return the points of the user
```

### balance and amount system

[](#balance-and-amount-system)

```
# config/meow-points.php
return [
    /*
    determine how much points equal to money amount
    @type float
    */
    'amount' => 12.5,
];
```

```
$user->addAmount(100); // add 100 amount of money to the user
$user->subAmount(100); // remove 100 amount of money from the user
# and you can use for method after add or sub amount
# to determine the amount money source or reason for the points change
$user->addAmount(100)->for($prize); // add 100 amount of money to the user for the prize
$user->subAmount(100)->for($payment); // remove 100 amount of money from the user for the payment
$user->current_balance; // return the balance of the model
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ahmedtofaha](https://github.com/ahmedtofaha10)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1341d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c90016446d158fbcc6cdcb930a85b5e1f61d69479d36d591339f6fc4b35b9b2?d=identicon)[ahmedtofaha10](/maintainers/ahmedtofaha10)

---

Top Contributors

[![ahmedtofaha10](https://avatars.githubusercontent.com/u/42559476?v=4)](https://github.com/ahmedtofaha10 "ahmedtofaha10 (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelpointsahmedtofahameow-pointspoints-system

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ahmedtofaha-meow-points/health.svg)

```
[![Health](https://phpackages.com/badges/ahmedtofaha-meow-points/health.svg)](https://phpackages.com/packages/ahmedtofaha-meow-points)
```

###  Alternatives

[qcod/laravel-gamify

Add gamification in laravel app with reputation point and badges support

680347.0k1](/packages/qcod-laravel-gamify)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
