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

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 13% 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://avatars.githubusercontent.com/u/12153880?v=4)[Goper Zosa](/maintainers/goper-leo)[@goper-leo](https://github.com/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.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M263](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M317](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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