PHPackages                             pixelfederation/google-api-php-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. pixelfederation/google-api-php-client

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

pixelfederation/google-api-php-client
=====================================

A wrapper for the official Google api PHP client.

1.1.1(4y ago)1424[1 PRs](https://github.com/pixelfederation/google-api-php-client/pulls)BSD-3-ClausePHP &gt;=7.1

Since Jun 28Compare

[ Source](https://github.com/pixelfederation/google-api-php-client)[ Packagist](https://packagist.org/packages/pixelfederation/google-api-php-client)[ RSS](/packages/pixelfederation-google-api-php-client/feed)WikiDiscussions Synced yesterday

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

GoogleApi PHP Client
====================

[](#googleapi-php-client)

A wrapper for the official Google api PHP client.

Usage
-----

[](#usage)

To install the composer package, run the following command:

```
composer require pixelfederation/google-api-php-client
```

After the installation of the dependencies, the Client should be instantiated this way:

```
$googleServiceFactory = new \PixelFederation\GoogleApi\Factory\GoogleServiceFactory('Server API key');
$resultFactory = new \PixelFederation\GoogleApi\Factory\ResultFactory();

$client = new \PixelFederation\GoogleApi\Client($googleServiceFactory, $resultFactory);
```

- $googleServiceFactory: "Server Api key" documentation -

Now you are able to call methods from ClientInterface. For example, if you can read something from

```
// $client->getSheetById($spreadsheetId, $name, array $keys, $range = 'A1:XXX');

/**
 * @param string $spreadsheetId The ID of the spreadsheet to retrieve data from.
 * @param string $name          Name of Sheet
 * @param array  $keys          Names of column what you can retrieve
 * @param string $range         The A1 notation of the values to retrieve.
 *
 * @return Result
 */
$result = $client->getSheetById("1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms", "Class Data", [
    "Student Name",
    "Gender",
    "Home State",
]);

$response = $result->findBy([ 'Gender' => "Female", "Home State" => "MD" ]);

/*
Array
(
    [8] => Array
        (
            [Student Name] => Dorothy
            [Gender] => Female
            [Home State] => MD
        )

)
*/
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~328 days

Recently: every ~491 days

Total

7

Last Release

1688d ago

Major Versions

0.1.3 → 1.0.02017-02-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f41a9b6b3fcc495a546791e3993b29832b7a4b08f34ad094a1131e2e8784d01?d=identicon)[pixelfederation](/maintainers/pixelfederation)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (21 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (19 commits)")[![surikman](https://avatars.githubusercontent.com/u/7412310?v=4)](https://github.com/surikman "surikman (12 commits)")

---

Tags

googlespreadsheetgoogle api

### Embed Badge

![Health badge](/badges/pixelfederation-google-api-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/pixelfederation-google-api-php-client/health.svg)](https://phpackages.com/packages/pixelfederation-google-api-php-client)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

14.3k318.2M1.5k](/packages/phpoffice-phpspreadsheet)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k70.2M230](/packages/openspout-openspout)[asimlqt/php-google-spreadsheet-client

Google Spreadsheet PHP Client

5412.8M7](/packages/asimlqt-php-google-spreadsheet-client)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[api-platform/doctrine-common

Common files used by api-platform/doctrine-orm and api-platform/doctrine-odm

274.4M48](/packages/api-platform-doctrine-common)[oat-sa/tao-core

TAO core extension

66143.7k116](/packages/oat-sa-tao-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
