Download the PHP package fr30n/ganalytics without Composer

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

Retrieve data from Google Analytics

Latest Version Build Status Quality Score StyleCI Total Downloads

Using this package you can easily retrieve data from Google Analytics.

Here are a few examples of the provided methods:

Most methods will return an \Illuminate\Support\Collection object containing the results.

Fr3on is a software agency in Cairo, Egypt. You'll find an overview of all our open source projects on our website.

Installation

This package can be installed through Composer.

Optionally, you can publish the config file of this package with this command:

The following config file will be published in config/ganalytics.php

Usage

When the installation is done you can easily retrieve Analytics data. Nearly all methods will return an Illuminate\Support\Collection-instance.

Here are a few examples using periods

$analyticsData is a Collection in which each item is an array that holds keys date, visitors and pageViews

If you want to have more control over the period you want to fetch data for, you can pass a startDate and an endDate to the period object.

Provided methods

Visitors and pageviews

The function returns a Collection in which each item is an array that holds keys date, visitors, pageTitle and pageViews.

Total visitors and pageviews

The function returns a Collection in which each item is an array that holds keys date, visitors, and pageViews.

Most visited pages

The function returns a Collection in which each item is an array that holds keys url, pageTitle and pageViews.

Top referrers

The function returns a Collection in which each item is an array that holds keys url and pageViews.

User Types

The function returns a Collection in which each item is an array that holds keys type and sessions.

Top browsers

The function returns a Collection in which each item is an array that holds keys browser and sessions.

All other Google Analytics queries

To perform all other queries on the Google Analytics resource use performQuery. Google's Core Reporting API provides more information on which metrics and dimensions might be used.

You can get access to the underlying Google_Service_Analytics object:

Testing

Run the tests with:

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Support us

Fr3on is a software agency based in Cairo, Egypt. You'll find an overview of all our open source projects on our website.

Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

License

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


All versions of ganalytics with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
google/apiclient Version ^2.0
laravel/framework Version ~5.8.0
madewithlove/illuminate-psr-cache-bridge Version ^1.0
nesbot/carbon Version ^1.21 | ^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 fr30n/ganalytics contains the following files

Loading the files please wait ....