{"id":18533116,"url":"https://github.com/googleapis/php-analytics-data","last_synced_at":"2025-04-14T20:58:42.644Z","repository":{"id":37834503,"uuid":"314632716","full_name":"googleapis/php-analytics-data","owner":"googleapis","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-24T21:35:02.000Z","size":510,"stargazers_count":112,"open_issues_count":1,"forks_count":19,"subscribers_count":53,"default_branch":"main","last_synced_at":"2025-04-07T18:06:56.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleapis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-20T18:06:26.000Z","updated_at":"2025-04-04T04:10:13.000Z","dependencies_parsed_at":"2024-01-13T01:00:16.886Z","dependency_job_id":"4f20a666-b43e-4b81-ad9b-d5f456602aea","html_url":"https://github.com/googleapis/php-analytics-data","commit_stats":{"total_commits":108,"total_committers":12,"mean_commits":9.0,"dds":0.6296296296296297,"last_synced_commit":"640df2b40d48d290b27c6e71df948f0e86b8990c"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fphp-analytics-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fphp-analytics-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fphp-analytics-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fphp-analytics-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/php-analytics-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961200,"owners_count":21189991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T19:09:26.133Z","updated_at":"2025-04-14T20:58:42.625Z","avatar_url":"https://github.com/googleapis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Analytics Data for PHP\n\n\u003e Idiomatic PHP client for [Google Analytics Data](https://analytics.google.com/analytics/web/provision/#/provision).\n\n[![Latest Stable Version](https://poser.pugx.org/google/analytics-data/v/stable)](https://packagist.org/packages/google/analytics-data) [![Packagist](https://img.shields.io/packagist/dm/google/analytics-data.svg)](https://packagist.org/packages/google/analytics-data)\n\n* [API documentation](https://cloud.google.com/php/docs/reference/analytics-data/latest)\n\n**NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any\nsupport requests, bug reports, or development contributions should be directed to\nthat project.\n\n### Installation\n\nTo begin, install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n\nNow install this component:\n\n```sh\n$ composer require google/analytics-data\n```\n\nThis component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods)\nplease see our [gRPC installation guide](https://cloud.google.com/php/grpc).\n\n### Authentication\n\nPlease see our [Authentication guide](https://github.com/googleapis/google-cloud-php/blob/main/AUTHENTICATION.md) for more information\non authenticating your client. Once authenticated, you'll be ready to start making requests.\n\n### Sample\n\n```php\nrequire 'vendor/autoload.php';\n\nuse Google\\Analytics\\Data\\V1beta\\Client\\BetaAnalyticsDataClient;\nuse Google\\Analytics\\Data\\V1beta\\RunReportRequest;\n\n$client = new BetaAnalyticsDataClient();\n\n$request = new RunReportRequest([\n    'property' =\u003e 'properties/[YOUR_PROPERTY_ID]'\n]);\n$response = $client-\u003erunReport($request);\n\nforeach ($response-\u003egetRows() as $row) {\n    foreach ($row-\u003egetDimensionValues() as $dimensionValue) {\n        print 'Dimension Value: ' . $dimensionValue-\u003egetValue() . PHP_EOL;\n    }\n}\n```\n\n### Debugging\n\nPlease see our [Debugging guide](https://github.com/googleapis/google-cloud-php/blob/main/DEBUG.md)\nfor more information about the debugging tools.\n\n### Version\n\nThis component is considered beta. As such, it should be expected to be mostly\nstable and we're working towards a release candidate. We will address issues\nand requests with a higher priority.\n\n### Next Steps\n\n1. Understand the [official documentation](https://developers.google.com/analytics/devguides/reporting/data/v1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fphp-analytics-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fphp-analytics-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fphp-analytics-data/lists"}