I have successfully followed through the following Google article, https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php and setup a basic php script for extracting Analytics data. It was quite easy :-)
I am now trying to integrate this code into my Symfony2 project. Now it seems that the library is written in an ancient style, no namespacing and filenames are different to that of the class in them. Can anyone help me on how I can integrate it into my symfony project? I have loaded in the git repository via composer with the follwoing:
"repositories": [
{
"type": "package",
"package": {
"name": "google/google-api-php-client",
"version": "1.1.4",
"dist": {
"url": "https://github.com/google/google-api-php-client/archive/1.1.4.zip",
"type": "zip",
"reference": "1.1.4"
}
}
}
],
But the issue is all of the autoloading etc.
Thanks in advance!