PHPackages                             ilya\_cig/track-session - 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. ilya\_cig/track-session

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

ilya\_cig/track-session
=======================

Track Session

013PHP

Since Jul 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ilya-softteco/TrackSessions)[ Packagist](https://packagist.org/packages/ilya_cig/track-session)[ RSS](/packages/ilya-cig-track-session/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TrackSession
============

[](#tracksession)

This is a simple Laravel package to track a user's session anywhere in the code.

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

[](#installation)

Install using composer:

```
composer require ilya_cig/track-session:dev-master
```

Run migrations:

```
php artisan migrate --path=/vendor/ilya_cig/track-session/database/migrations/2024_07_24_123500_create_track_session_table.php
```

(optional) Add the service provider in `config/app.php`:

```
CIG\TrackSession\Providers\TrackSessionServiceProvider::class,
```

(optional) And add the Agent alias to `config/app.php`:

```
'TrackSession' => CIG\TrackSession\Facades\TrackSessionFacade::class,
```

Basic Usage
-----------

[](#basic-usage)

If you want track session just use:

```
use TrackSession;

TrackSession::track();
```

### OR

[](#or)

```
use CIG\TrackSession\Facades\TrackSessionFacade;

TrackSessionFacade::track();
```

### OR

[](#or-1)

```
use CIG\TrackSession\Services\TrackSessionServices;

$trackSession = new TrackSessionServices();
$trackSession->track();
```

### OR

[](#or-2)

```
use Illuminate\Support\Facades\App;
$trackSession = App::make('track.session');
$trackSession->track();
```

### OR

[](#or-3)

```
use CIG\TrackSession\Jobs\TrackSession;
TrackSession::dispatch();
```

License
=======

[](#license)

TrackSession is licensed under [The MIT License (MIT)](LICENSE).

Testing
=======

[](#testing)

```
vendor/bin/testbench  migrate
```

```
./vendor/bin/phpunit --filter test_save_in_table  tests/Feature/TrackSession.php
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a3c81891ed201ea385f08a291cec45f529b42caf5dddc1197b694db1bf5515b?d=identicon)[i.martinkevich.softteco](/maintainers/i.martinkevich.softteco)

---

Top Contributors

[![ilya-softteco](https://avatars.githubusercontent.com/u/108676640?v=4)](https://github.com/ilya-softteco "ilya-softteco (7 commits)")

### Embed Badge

![Health badge](/badges/ilya-cig-track-session/health.svg)

```
[![Health](https://phpackages.com/badges/ilya-cig-track-session/health.svg)](https://phpackages.com/packages/ilya-cig-track-session)
```

###  Alternatives

[codenco-dev/nova-grid-system

A Laravel Nova tool to have a grid system

80300.1k](/packages/codenco-dev-nova-grid-system)[mageplaza/module-share-cart

Magento 2 Share Cart extension

12182.8k2](/packages/mageplaza-module-share-cart)

PHPackages © 2026

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