PHPackages                             ilovefiniki/php-google-people-api - 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. [API Development](/categories/api)
4. /
5. ilovefiniki/php-google-people-api

ActiveLibrary[API Development](/categories/api)

ilovefiniki/php-google-people-api
=================================

This package provides a user friendly way of interacting with Google Contacts via the Google People API.

v1.0.0(8y ago)06LGPL-3.0-onlyPHP

Since Feb 20Pushed 6y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

👥 PHP Google People API
=======================

[](#-php-google-people-api)

This package provides a user friendly way of interacting with Google Contacts via the Google People API.

[![](assets/images/php-google-people-api.png)](assets/images/php-google-people-api.png)

Installation
------------

[](#installation)

PHP Google People API can be easily installed using Composer. Just run the following command from the root of your project.

```
composer require rapidwebltd/php-google-people-api

```

If you have never used the Composer dependency manager before, head to the [Composer website](https://getcomposer.org/) for more information on how to get started.

Setup
-----

[](#setup)

To use this package, you need to authenticate with Google via OAuth 2. Thankfully, this is made easy by the PHP Google OAuth 2 Handler package.

You can run its guided setup script with the following command.

```
php vendor/rapidwebltd/php-google-oauth-2-handler/src/setup.php

```

This will guide you through the process of setting up a project, and logging into to the Google account that you wish to manage contacts for. When asked which scopes you require access to, enter the following.

```
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/contacts
https://www.googleapis.com/auth/contacts.readonly

```

When complete, you will have to code you need to create a `GoogleOAuth2Handler` object for this Google account.

You can then create a `GooglePeople` object, as follows.

```
$people = new GooglePeople($googleOAuth2Handler);
```

Usage
-----

[](#usage)

### Retrieve all contacts

[](#retrieve-all-contacts)

```
// Retrieval all contacts
foreach($people->all() as $contact) {
    echo $contact->resourceName.' - ';
    if ($contact->names) {
        echo $contact->names[0]->displayName;
    }
    echo PHP_EOL;
}
```

### Retrieve a single contact

[](#retrieve-a-single-contact)

```
// Retrieve single contact (by resource name)
$contact = $people->get('people/c8055020007701654287');
```

### Create a new contact

[](#create-a-new-contact)

```
// Create new contact
$contact = new Contact($people);
$contact->names[0] = new stdClass;
$contact->names[0]->givenName = 'Testy';
$contact->names[0]->familyName = 'McTest Test';
$contact->save();
```

### Update a contact

[](#update-a-contact)

```
// Update contact
$contact->names[0]->familyName = 'McTest';
$contact->save();
```

### Delete a contact

[](#delete-a-contact)

```
// Delete contact
$contact->delete();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

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

Unknown

Total

1

Last Release

3003d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5747e3424e898c584094363bc6fd1ff8512442e13d4031a6f52acf6beadda9c8?d=identicon)[ilovefiniki](/maintainers/ilovefiniki)

---

Top Contributors

[![ilovefiniki](https://avatars.githubusercontent.com/u/8107785?v=4)](https://github.com/ilovefiniki "ilovefiniki (3 commits)")[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (3 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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