Download the PHP package zfhassaan/genlytics without Composer

On this page you can find all versions of the php package zfhassaan/genlytics. 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 genlytics

Latest Version on Packagist Tests Total Downloads Laravel 10–12 Hits

Disclaimer

The Google UA Property is going away from July 2023. Google is implementing the Google Analytics V4. Universal Analytics will no longer process new data in standard properties beginning on 1 July 2023. Prepare now by setting up and switching over to a Google Analytics 4 property. Learn More

The Google Analytics data will only be available through the GCP API.

About

Genlytics is a powerful Google Analytics 4 (GA4) package for Laravel, completely rewritten with Repository pattern, Event-driven architecture, and performance optimizations. The package integrates seamlessly with your Laravel application, providing intelligent caching, background job processing, and real-time analytics updates.

Key Features

Architecture Highlights

Requirements

Installation

Install the package via Composer:

Auto-Discovery

The package supports Laravel's auto-discovery, so the service provider and facade will be automatically registered. No manual configuration needed!

Manual Registration (Optional)

If you prefer manual registration, add to config/app.php:

Configuration

Publish Configuration

Or publish everything:

Environment Variables

Add to your .env file:

Google Analytics Setup

  1. Create GA4 Property - Create a Google Analytics 4 property
  2. Enable Analytics Data API - Enable in Google Cloud Console
  3. Create Service Account - Create service account in GCP
  4. Generate JSON Key - Download service account JSON key
  5. Grant Analytics Access - Add service account email to GA4 property with Viewer/Analyst role

See Installation Guide for detailed steps.

Usage

Basic Usage

Or use the facade:

Or dependency injection:

Running Reports

Basic Report

Multiple Dimensions and Metrics

With Options

Force Refresh (Bypass Cache)

Real-Time Reports

Dimension Reports

Response Format

Advanced Features

Caching

Genlytics automatically caches analytics data to reduce API calls:

Benefits:

Background Jobs

Process analytics queries in the background:

Benefits:

Real-Time Updates

Automatic real-time data refresh:

Events

Listen to analytics events:

Available Events:

Using Repository Directly

For advanced usage, access the repository:

Publishing Test Cases

Publish test cases to your application for customization:

This publishes:

See PUBLISHING.md for details.

Testing

Run the test suite:

Or with coverage:

Test Coverage:

Cache Management

Clear Cache

Refresh Specific Cache

Programmatic Cache Management

Common Use Cases

Dashboard Widget

Real-Time Visitor Count

Top Countries Report

Error Handling

Performance Optimizations

  1. Intelligent Caching - Reduces API calls by 90%+
  2. Background Processing - Non-blocking requests
  3. Query Optimization - Efficient parameter handling
  4. Real-Time Scheduling - Automatic refresh management

Documentation

Changelog

See CHANGELOG.md for all changes.

v2.0.0 - Major Rewrite

Support

License

The MIT License (MIT). Please see License File for more information.

Author


Made with ❤️ for the Laravel community


All versions of genlytics with dependencies

PHP Build Version
Package Version
Requires google/apiclient Version ^2.12
php Version ^8.1
google/analytics-data Version ^0.9.0
google/gax Version ^1.18
google/common-protos Version ^1.3.1||^2.0||^3.0
google/longrunning Version ^0.2
grpc/grpc Version ^1.13
google/protobuf Version ^3.21
google/cloud-core Version ^v1.48.1
google/grpc-gcp Version ^0.2.1
google/auth Version ^v1.24.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 zfhassaan/genlytics contains the following files

Loading the files please wait ...