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 3w ago

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 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1750d 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

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M625](/packages/spatie-laravel-medialibrary)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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