PHPackages                             mfrouh/activity-model - 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. mfrouh/activity-model

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

mfrouh/activity-model
=====================

Package To record activity model

2.2(1y ago)01.9kMITPHP

Since Sep 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mfrouh/activity-model)[ Packagist](https://packagist.org/packages/mfrouh/activity-model)[ RSS](/packages/mfrouh-activity-model/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (12)Used By (0)

Activity Model
==============

[](#activity-model)

```
composer require mfrouh/activity-model

```

```
php artisan migrate
```

```
FIREBASE_CREDENTIALS=firebase-credentials.json
```

```
use MFrouh\ActivityModel\Interfaces\ActivityInterface;
use MFrouh\ActivityModel\Traits\ActivityModel;

class Order extends Model implements ActivityInterface
{
    use ActivityModel;

   public function activityChanges(): array
    {
        return [
            'status' => [
                'title_ar'   => '',
                'title_en'   => '',
                'message_ar' => '',
                'message_en' => '',
            ],
        ];
    }

    public function activityDefault(): array
    {
        return [
            'created' => [
                'title_ar'   => '',
                'title_en'   => '',
                'message_ar' => '',
                'message_en' => '',
            ],
            'deleted' => [
                'title_ar'   => '',
                'title_en'   => '',
                'message_ar' => '',
                'message_en' => '',
            ],
            'updated' => [
                'title_ar'   => '',
                'title_en'   => '',
                'message_ar' => '',
                'message_en' => '',
            ],
            'restored' => [
                'title_ar'   => '',
                'title_en'   => '',
                'message_ar' => '',
                'message_en' => '',
            ],
        ];
    }

    public function activityFcmTokens(): array
    {
        return [];
    }

}
```

**1- activityChanges() method take column name messages**
---------------------------------------------------------

[](#1--activitychanges-method-take-column-name-messages)

**2- activityDefault() method take event name messages**
--------------------------------------------------------

[](#2--activitydefault-method-take-event-name-messages)

**3- activityFcmTokens() method take tokens to send fcm notification**
----------------------------------------------------------------------

[](#3--activityfcmtokens-method-take-tokens-to-send-fcm-notification)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~70 days

Recently: every ~164 days

Total

11

Last Release

626d ago

Major Versions

1.9 → 2.02023-03-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51133827?v=4)[Mohamed Abdel Ghani](/maintainers/mfrouh)[@mfrouh](https://github.com/mfrouh)

---

Top Contributors

[![mfrouh](https://avatars.githubusercontent.com/u/51133827?v=4)](https://github.com/mfrouh "mfrouh (17 commits)")

### Embed Badge

![Health badge](/badges/mfrouh-activity-model/health.svg)

```
[![Health](https://phpackages.com/badges/mfrouh-activity-model/health.svg)](https://phpackages.com/packages/mfrouh-activity-model)
```

PHPackages © 2026

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