Download the PHP package irazasyed/laravel-gamp without Composer

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

Laravel-GAMP Package

Join PHP Chat Chat on Telegram Laravel & Lumen Package Latest Version on Packagist Total Downloads

Laravel GAMP: Google Analytics Measurement Protocol Package for Laravel & Lumen.

Send data to Google Analytics from Laravel/Lumen. Supports all GA Measurement Protocol API methods.

Laravel GAMP

Quick start

Install

Step 1: Install Through Composer

(Lumen) Add the Service Provider

Open bootstrap/app.php and register the service provider by adding:

Step 2: Publish Config

Open your terminal window and fire the following command to publish config file to your config directory:

Usage

Open config file config/gamp.php and set the tracking_id with your Google Analytics tracking / web property ID. Refer the config file for other default configuration settings.

This Package adds Laravel Support to GA Measurement Protocol PHP Library by THE ICONIC. It's simply a wrapper around the library with default config for easier usage with Laravel. So all the methods listed here are available and will work seamlessly.

Example Usage

Send a Page view hit:

Send an Event:

Config Overview

Open the config file for detailed comments for each option.

Set your Google Analytics Tracking / Web Property ID in tracking_id key [REQUIRED]

All other configuration options are optional, use as per your requirements.

To send data over SSL, set is_ssl to true.

To disable library in Staging/Dev env (Prevents the library from sending any hits to GA), set is_disabled to true.

To Anonymize IP, set anonymize_ip to true.

To Make Async Requests, set async_requests to true.

...

Refer the library's documentation for other remaining methods and examples, they all work.

Note: You don't have to use the protocol version, tracking id, anonymize ip and async request (non-blocking) methods from the original library as they're automatically set in Service Provider when the package is initialized based on the config file. As long as you update the config file with correct settings, it should work just fine.

Additional information

Any issues, please report here

Credits

License

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

FOSSA Status


All versions of laravel-gamp with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
illuminate/support Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
theiconic/php-ga-measurement-protocol Version ^2.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 irazasyed/laravel-gamp contains the following files

Loading the files please wait ....