Download the PHP package firesphere/google-api without Composer

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

Connect to Google API

codecov Scrutinizer CircleCI Maintainability

Google API

The Google API V4 is pretty powerful and supports many different calls to different applications.

The initial use case implemented in this module is, to get the page views for the a set of pages in a given time period and store this count in the database, so that you can sort pages by popularity. There are many features of the google api, that could be included in future updates or extensions of this module.

Further functionality is possible with the given API

Installation

composer require firesphere/google-api:dev-master

And run a dev/build

Set up

First, you will have to set up a Google API application, that is connected to Google Analytics. How to set that up is detailed In the Google Documentation.

Add the absolute path to the key to your _ss_environment file:

Currently, the OAuth2 integration is not built yet, so for now, add the email address from the downloaded json (key: client_email) and add this user to your Analytics account. You will need to give it full administrative powers.

Second, copy your View ID from the Google Analytics account you want your data from, and put it in the cms under Settings > Google API

Configuration

Create a yml file, or add to an existing config yml the configuration for your update:

With multiple filters, it seems Google limits to only the first 20 filters.

If you have multiple filters, you need to set up the batch functionality. By default, the CronTask will do this for you.

The crontask currently does not support scheduling, but will probably do so in the future.

Filters are what Google calls "DimensionFilters", which are contained in a "DimensionFilterClause". A filter, at this stage, is a specific page URL.

More on DimensionFilterClauses and DimensionFilters can be found in the Google Documentation.

Did you say Ninja Unicorns?

  ,.._.-'        '''--...-||\     -. \   \
.'.=.'                    `         `.\ [ Y

/ / ] J Y / Y Y L | | | \ | L | | | Y A J | I | /I\ / | \ I \ ( |]/| J \ /._ / -tI/ | L ) / /'-------'J '-:. J .' ,' ,' , \'-. \ \ T ,' ,' )\ /| ';'---7 / | ,'L Y...-' / .' / \ / / J Y | J .'-' / ,--.( / L | J L -' .' / | /\ | J. L J .-;.-/ | \ .' / J L-J L____,.-' | .-' | L J L J ` J | J L | L J | L J L \ L \ | L ) _.'\ ) _.'\ L \(' \ ('\ ) _.'\-....' -....' (' \ `-._/



## License

BSD-3 clause

All versions of google-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
silverstripe/recipe-cms Version ^4.0
google/apiclient 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 firesphere/google-api contains the following files

Loading the files please wait ....