Download the PHP package bolstad/analytrix without Composer
On this page you can find all versions of the php package bolstad/analytrix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bolstad/analytrix
More information about bolstad/analytrix
Files in bolstad/analytrix
Package analytrix
Short Description jump start kit for Google Analytics-based web apps
License MIT
Informations about the package analytrix
Analytrix
A PHP jump start kit for Google Analytics-based web apps. Setup your GA-API settings in your enviroments ettings (or a .env file) and you a are ready to go.
Rest on the shoulder of the gigants: timgws/google-analytics-api and vlucas/phpdotenv
Code Example
Installation
-
Install this library via composer:
composer require 'bolstad/analytrix:dev-master'
- Create a Project in the Google APIs Console: https://code.google.com/apis/console/
- Enable the Analytics API under Services
- Under API Access: Create an Oauth 2.0 Client-ID
- Give a Product-Name, choose Web Application or Service Account depending on your needs
-
Web Application: Set a redirect-uri in the project which points to your apps url
- Config your ENV with the aplication API vars with these names: CLIENT_ID, CLIENT_SECRET & REDIRECT_URI
API Reference
Depending on the size of the project, if it is small and simple enough the reference docs can be added to the README. For medium size to larger projects it is important to at least provide a link to where the API reference docs live.
Describe and show how to run the tests with code examples.
Contributors
Christian Bolstad [email protected]
License
MIT