PHPackages                             goper-leo/laravel-sentry - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. goper-leo/laravel-sentry

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

goper-leo/laravel-sentry
========================

Record visitor views on articles/project or your site with extra details for monitoring.

06PHP

Since Oct 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/goper-leo/laravel-sentry)[ Packagist](https://packagist.org/packages/goper-leo/laravel-sentry)[ RSS](/packages/goper-leo-laravel-sentry/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Sentry
==============

[](#laravel-sentry)

#### This is not an integration of [Sentry](https://sentry.io/welcome/).

[](#this-is-not-an-integration-of-sentry)

This is a Laravel package for recording visitor on your articles, project or any page in your application. It will save on the database the visitor/user who view page on your app with their details like location, ip address, browser, machine etc.

### Installation

[](#installation)

- Install the `goper-leo/laravel-sentry`:

```
composer require goper-leo/laravel-sentry
```

or add to your `composer.json`

```
"goper-leo/laravel-sentry": "dev-master"

```

and run `composer update`

- Add the configuration for the package run `php artisan vendor:publish --provider=SentryServiceProvider`
- After vendor publish create the table on your database run `php artisan migrate` the table will be named *sentries*

> If you're on Laravel 5.4 or earlier, you'll need to add the following to your `config/app/php`

```
'providers' => array(
    EETechMedia\Sentry\SentryServiceProvider::class,
)
'aliases' => array(
    'Sentry' => EETechMedia\Sentry\SentryFacade::class,
)
```

### Usage

[](#usage)

Add the facade on your controller

```
use Sentry;

```

Sentry columns

- base\_id = Your point or source this only allow integer value - this could be `page id` , `project_id` or any point. This can be **null**.
- url = If you don't use `base_id` use url as your point / primary key. This is string value, this can be **null** also.

> ***Note:*** `base_id` and `url` cannot be both null, there must be at least one of the both will have a value. To make your primary key or point of reference.

To add user/viewer simply put on your controller

```
$viewer = [
    'base_id' => 'point_id',
    'url' => 'lorem-ipsum'
];

Sentry::plant($viewer);

```

To fetch / get data of all viewers

```
Sentry::getAll();
or
Sentry::getAll('base_id-or-url'); // To get all records accoring to condition

```

Other methods

- getWhere
- getObserverSpot
- getObserverHeaders

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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/6dcac00970058b3e6a9ff0682c6e6ea844b4a86ad9a9c9ce7ea505296274981b?d=identicon)[goper-leo](/maintainers/goper-leo)

### Embed Badge

![Health badge](/badges/goper-leo-laravel-sentry/health.svg)

```
[![Health](https://phpackages.com/badges/goper-leo-laravel-sentry/health.svg)](https://phpackages.com/packages/goper-leo-laravel-sentry)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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