PHPackages                             adgyn/simple-analytics-laravel - 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. adgyn/simple-analytics-laravel

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

adgyn/simple-analytics-laravel
==============================

Focused on creating analyses for decision-making.

1.0.0(2y ago)241MITPHPPHP ^8.2

Since May 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/adgyn/simple-analytics-laravel)[ Packagist](https://packagist.org/packages/adgyn/simple-analytics-laravel)[ RSS](/packages/adgyn-simple-analytics-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Requirements
------------

[](#requirements)

- PHP 8.2 or later
- Laravel 11.x or later

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

[](#installation)

Pull this package in through Composer.

```
composer require adgyn/simple-analytics-laravel

```

Publish the package settings.

```
php artisan vendor:publish --tag=simple-analytics

```

Run laravel migrations.

```
php artisan migrate

```

Usage
-----

[](#usage)

After installing the package, it will make 2 routes available in your project:

---

### Create a new event from a front-end request.

[](#create-a-new-event-from-a-front-end-request)

```
POST /analytics/event

```

Body Parameters:

FieldDescriptionRequiredDefaultevent\_nameName of eventYes-event\_labelLabel of eventYes-routeFrontend route to analyticsYes-referenceReference to filter Ex: parameter of routeNoNULL---

### Get analytics generated of events created.

[](#get-analytics-generated-of-events-created)

```
GET /analytics/data

```

Query Parameters:

FieldDescriptionRequiredFormatDefaultstart\_atStart date to filterNoY-m-d H:i:s-finish\_atFinish date to filterNoY-m-d H:i:s-detailedReturns detailed data by route, country, etc.NoBooleanfalseroutesList of routes to filter byNoArray\[\]referenceList of references to filter byNoArray\[\]countriesList of countries codes to filter by. EX: BRNoArray\[\]Example response (Detailed: false):

```
{
	"unique_visitors": 4,
	"visitors": 8,
	"countries": 1,
	"events": 3,
	"routes": 3
}
```

Example response (Detailed: true):

```
{
	"routes": [
		{
			"route": "\/dashboard",
			"unique_visitors": 1,
			"visitors": 1
		},
		{
			"route": "\/dashboard\/payment",
			"unique_visitors": 3,
			"visitors": 5
		},
		{
			"route": "\/dashboard\/test",
			"unique_visitors": 1,
			"visitors": 2
		}
	],
	"countries": [
		{
			"country": "Not found",
			"unique_visitors": 4,
			"visitors": 8
		}
	],
	"events": [
		{
			"event": "On Click",
			"unique_visitors": 1,
			"visitors": 1
		},
		{
			"event": "Event Test",
			"unique_visitors": 1,
			"visitors": 1
		},
		{
			"event": "Click on payment button",
			"unique_visitors": 3,
			"visitors": 6
		}
	]
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% 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

Unknown

Total

1

Last Release

735d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4827885e26b35cd2fd98679b73968557e4d8fcec84e73324174249ee248a8bbb?d=identicon)[wcostaprijo](/maintainers/wcostaprijo)

---

Top Contributors

[![wcostaprijo](https://avatars.githubusercontent.com/u/54078100?v=4)](https://github.com/wcostaprijo "wcostaprijo (27 commits)")[![luizdevs](https://avatars.githubusercontent.com/u/10924666?v=4)](https://github.com/luizdevs "luizdevs (1 commits)")

### Embed Badge

![Health badge](/badges/adgyn-simple-analytics-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/adgyn-simple-analytics-laravel/health.svg)](https://phpackages.com/packages/adgyn-simple-analytics-laravel)
```

###  Alternatives

[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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