Download the PHP package simba-jirira-source/laravel-analytics without Composer

On this page you can find all versions of the php package simba-jirira-source/laravel-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-analytics

Laravel Analytics

First-party, self-hosted application analytics for Laravel.

Latest Version License Tests Static Analysis Code Style Database Security

Track page views, unique visitors, HTTP errors, and optional IP bans in your application's own database. Enable an optional Livewire 4 dashboard when you want KPIs, trends, and management screens inside your Laravel app — without routing analytics data through a third-party platform by default.

See docs/SCREENSHOTS.md for recommended dashboard screenshots.

Why Laravel Analytics?

Laravel Analytics provides first-party analytics designed specifically for Laravel applications. It is intended for teams who want analytics data stored alongside their application rather than depending entirely on an external analytics service.

Pre-1.0 development. See GitHub Releases and CHANGELOG.md for released versions.

Key Features

Capability Default Notes
Page views Off Middleware-based traffic tracking
Unique visitors Privacy-aware hashing Hashed identifiers; raw IP off by default
HTTP error analytics Off Fingerprinted error aggregation
Exact IPv4/IPv6 bans Off Optional middleware enforcement
Retention / pruning 90 days analytics:prune command
Livewire dashboard Off Gate or invokable authorization required
Cross-database support SQLite, MySQL, PostgreSQL Integration tests in CI
Replaceable contracts Configurable Visitor, traffic, and error recorders
Composer security auditing In CI and composer verify security.yml workflow

How It Differs

Capability Laravel Analytics External analytics integration
Data stored in application database Yes Usually no
Self-hosted analytics data Yes Depends on provider
Page views Yes Yes
Unique visitors Yes Yes
HTTP error analytics Yes Usually separate tooling
Exact IP access controls Yes Usually separate
External analytics account required No Usually yes
Laravel-native Livewire dashboard Yes (optional) Depends on provider
SQLite / MySQL / PostgreSQL CI Yes Not applicable

Quick Start

  1. Install the package and publish config plus migrations (see Installation).
  2. Run migrations.
  3. Enable features explicitly in config/analytics.php:

  4. Define dashboard authorization in your application:

  5. Visit /analytics (or your configured dashboard.path) when the dashboard is enabled.

When enabled is true and tracking toggles are on, middleware is registered on the web group automatically.

Installation

The service provider registers automatically via Laravel package discovery.

Publish configuration

Publish and run migrations

Migrations are not loaded automatically. Publish them, then migrate:

Publish everything (optional)

Tag Contents
analytics-config config/analytics.php
analytics-migrations Database migrations
analytics-views Blade / Livewire views
analytics-lang Translation files
analytics-assets Public assets

See docs/INSTALLATION.md for the full walkthrough.

Privacy by Default

By default the package:

See docs/PRIVACY.md. This package provides technical privacy controls but does not itself make an application compliant with any specific privacy law or regulatory framework.

Compatibility

Requirement Supported
PHP 8.3+ (8.3–8.5 in CI)
Laravel 12, 13
Livewire 4 (required dependency; dashboard is optional via config)
Databases SQLite, MySQL, PostgreSQL (integration CI)

Dashboard

The optional Livewire 4 dashboard provides overview metrics, traffic trends, top pages and referrers, error details, and IP ban management when explicitly enabled and authorized.

See docs/DASHBOARD.md.

Artisan Commands

Command Description
analytics:prune Remove records older than the configured retention window
analytics:ip-ban {ip} Ban an exact IPv4 or IPv6 address
analytics:ip-unban {ip} Remove an active ban

Pruning is not scheduled automatically. See docs/RETENTION.md.

Configuration

All settings live in config/analytics.php. See docs/CONFIGURATION.md for every key.

Extension points (contracts):

Public integration uses Laravel contracts, config keys, middleware aliases, and Artisan commands. There is no facade; a first-party event API is planned for a future release.

Testing

Individual gates:

PHPStan level 7 via Larastan. Run composer run prepare before composer analyse when analysing locally.

Documentation

Topic Document
Installation docs/INSTALLATION.md
Configuration docs/CONFIGURATION.md
Privacy docs/PRIVACY.md
Architecture docs/ARCHITECTURE.md
Visitor identification docs/VISITOR_IDENTIFICATION.md
Dashboard docs/DASHBOARD.md
Retention docs/RETENTION.md
Releases docs/RELEASES.md
GitHub repository setup docs/GITHUB_REPOSITORY_SETUP.md
Screenshot guidance docs/SCREENSHOTS.md
Contributing .github/CONTRIBUTING.md
Security policy .github/SECURITY.md
Changelog CHANGELOG.md

Contributing

Please read CODE_OF_CONDUCT.md.

Security

Report security issues privately. See SECURITY.md.

Versioning

This project follows Semantic Versioning. APIs may change before 1.0.0. See CHANGELOG.md.

License

The MIT License. See LICENSE.md.

Credits


All versions of laravel-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/auth Version ^12.0||^13.0
illuminate/database Version ^12.0||^13.0
illuminate/http Version ^12.0||^13.0
illuminate/routing Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
illuminate/validation Version ^12.0||^13.0
illuminate/view Version ^12.0||^13.0
livewire/livewire Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package simba-jirira-source/laravel-analytics contains the following files

Loading the files please wait ...