PHPackages                             m74asoud/temptag - 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. [Database &amp; ORM](/categories/database)
4. /
5. m74asoud/temptag

ActiveLibrary[Database &amp; ORM](/categories/database)

m74asoud/temptag
================

Laravel Temporary Tag for tagging Eloquent models - store in mongodb

v0.0.2(4y ago)24MITPHPPHP ^8.0

Since Sep 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/masoudnazarpoor/TempTag)[ Packagist](https://packagist.org/packages/m74asoud/temptag)[ RSS](/packages/m74asoud-temptag/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel TempTag
===============

[](#laravel-temptag)

Auto-expiring tags with additional payload data on any eloquent model.

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

[](#installation)

first you need to install and configure mongodb in your laravel project with [jenssegers/laravel-mongodb](https://github.com/jenssegers/laravel-mongodb), then install package [m74asoud/temptag](https://github.com/masoudnazarpoor/TempTag) with below command

```
composer require m74asoud/temptag
```

migrate table
-------------

[](#migrate-table)

```
php artisan migrate
```

Configure Model
---------------

[](#configure-model)

```
use M74asoud\TempTag\Traits\TempTagAble;

class User extend Model {
  use TempTagAble;
  protected $connection = 'mysql';
  protected $table = 'users';
}
```

Usage
-----

[](#usage)

```
$user->tempTagService()
->tagIt(
  string $title,
  $payload = null,
  Carbon $expire_at = null
): TempTag

$user->tempTagService()->unTag(string $title)
$user->tempTagService()->unTagID($ID)
$user->tempTagService()->get(string  $title): EloquentCollection
$user->tempTagService()->getOne(string  $title): ?TempTag
$user->tempTagService()->getOneID($ID): ?TempTag
$user->tempTagService()->all(): EloquentCollection
... and another method,complete readme file comming soon
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~0 days

Total

2

Last Release

1697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3b4485d4570fc9c5feade2e1d61878e9ca21b844abe186f52a82be89f8a8249?d=identicon)[m74asoud](/maintainers/m74asoud)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/m74asoud-temptag/health.svg)

```
[![Health](https://phpackages.com/badges/m74asoud-temptag/health.svg)](https://phpackages.com/packages/m74asoud-temptag)
```

###  Alternatives

[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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