PHPackages                             simirimia/google-drive - 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. simirimia/google-drive

ActiveLibrary[API Development](/categories/api)

simirimia/google-drive
======================

simplified Google Drive API access

17PHP

Since Jan 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/simirimia/google-drive)[ Packagist](https://packagist.org/packages/simirimia/google-drive)[ RSS](/packages/simirimia-google-drive/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simplified Google Drive API access
==================================

[](#simplified-google-drive-api-access)

Simplified Google Drive API access based on google/apiclient

How to run the examples
-----------------------

[](#how-to-run-the-examples)

- set up the Google client secret and download it as JSON file (see below id you need instructions for that)
- move it to the examples/config folder
- CLI version
    - rename it to app\_secret\_cli.json
    - open terminal, go to the examples/cli folder
        - run php index.php
        - open the URL
        - enter the verification code
        - now you should see a (partial) list of the content of your drive
        - run it again, now you should see the same list without the hassle of managing the verification code
- HTTP version
    - rename it to app\_secret\_http.json
    - set up a web server with examples/http as doc root
    - open http://&lt; your (local) web server url &gt;
        - given you have a local system gd-test.app set up:
            -

How to get the client secret from google
----------------------------------------

[](#how-to-get-the-client-secret-from-google)

- go to
- create new or open existing project
- got to API Manager, enable Google Drive API
- go to Credentials and create new OAuth Client ID
- if it is the first time, you need to setup the consent screen
    - enter product name and an optional URL
- CLI version
    - In the list with application types, choose other and give it a name
- HTTP version
    - In the list with application types, choose Web Application and give it a name
    - In the field Authorized redirect URIs enter:
        - http://&lt; your (local) web server url &gt;/&lt; OAuth2 callback handler &gt;
            - to run the examples (given you have a local system gd-test.app set up):
            -
- Confirm the popup with client id and secret -&gt; you don't need to remember those now
- Instead, download the whole credentials as json from the list with all client IDs
- move the file to any destination you like an make sure you give the correct path to the service

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec86093690ae144a0611ff181d3b9223d794b5e6a1b0a59ed44b87ecc5bf41f9?d=identicon)[simirimia](/maintainers/simirimia)

---

Top Contributors

[![simirimia](https://avatars.githubusercontent.com/u/11245808?v=4)](https://github.com/simirimia "simirimia (4 commits)")

### Embed Badge

![Health badge](/badges/simirimia-google-drive/health.svg)

```
[![Health](https://phpackages.com/badges/simirimia-google-drive/health.svg)](https://phpackages.com/packages/simirimia-google-drive)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)

PHPackages © 2026

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