承接 fojlerabbirabib/apiclient-drive-service 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fojlerabbirabib/apiclient-drive-service

Composer 安装命令:

composer require fojlerabbirabib/apiclient-drive-service

包简介

A slim, auto-synced, Drive-only subset of google/apiclient-services (unofficial, not affiliated with Google).

README 文档

README

A slim, auto-synced, Drive-only subset of google/apiclient-services.

Unofficial. Not affiliated with, endorsed by, or supported by Google. See NOTICE.

Why

google/apiclient-services ships generated PHP classes for 200+ Google APIs in a single package — 200MB+ on disk — even if your project only ever talks to Google Drive. This package extracts just the Google\Service\Drive classes (~670 KB) and keeps them in sync with upstream automatically, on a weekly schedule, opening a pull request for review.

Install

composer require fojlerabbirabib/apiclient-drive-service google/apiclient

This package ships the Drive service classes; google/apiclient ships the Google\Client / HTTP / auth base layer they extend. This package provides google/apiclient-services and conflicts the real one, so Composer installs google/apiclient without the 200MB full service catalog — only the Drive classes ship.

Don't also require google/apiclient-services directly — it registers the same Google\Service\Drive namespace from a different file and Composer will refuse the combination. If you need other Google services, use google/apiclient-services instead of this package.

Usage

use Google\Client;
use Google\Service\Drive;

$client = new Client();
$client->setAuthConfig('/path/to/credentials.json');
$client->addScope(Drive::DRIVE_READONLY);

$drive = new Drive($client);
$files = $drive->files->listFiles();

How this stays up to date

A weekly GitHub Action pulls only the Drive-relevant files from upstream (via a scoped git sparse-checkout, not a full clone), runs the test suite and 95% coverage gate on the synced code, and opens a pull request for manual review — it never auto-tags or publishes. A daily staleness check fails loudly if the sync hasn't run successfully in 7 days.

BC checking is not automated. Roave/BackwardCompatibilityCheck could not resolve the google/apiclient base classes (this package only suggests them, and conflicts google/apiclient-services), so it emitted only spurious breaks. Review the sync PR's diff for breaking API surface before merging.

See CHANGELOG.md for the exact upstream commit each sync was based on.

Versioning

Standard SemVer, decided manually when a sync PR is merged:

Change Bump
No breaking changes, no new public API surface PATCH
No breaking changes, new public API added MINOR
Breaking change (removed/renamed class, method, property; incompatible signature) MAJOR

License

Apache-2.0, same as upstream. See LICENSE and NOTICE.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固