ins0 / zf2-analytics
ZF2 module for interacting with the Google-Measurement-PHP-Client library
Installs: 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ins0/zf2-analytics
Requires
- php: >=5.5
- ins0/google-measurement-php-client: 2.0.*
This package is auto-updated.
Last update: 2025-10-11 18:49:44 UTC
README
ZF2 Module wrapper for the google-measurement-php-client library
Requirements
Installation
Install via Composer
In the require key of composer.json file add the following
"ins0/zf2-analytics": "1.0.*"
Or
php composer.phar require ins0/zf2-analytics:1.*
Copy-paste the zf2-analytics.global.php.dist file to your autoload folder, and enable the module by adding
Zf2Analytics to your application.config.php file.
Usage
use Racecore\GATracking\GATracking; $analytics = $serviceLocator->get(GATracking::class);