PHPackages                             websecret/laravel-google-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. websecret/laravel-google-api

ActiveLibrary[API Development](/categories/api)

websecret/laravel-google-api
============================

Google API Provider for Laravel projects

02.6k1PHP

Since May 22Pushed 5y ago2 watchersCompare

[ Source](https://github.com/websecret/laravel-google-api)[ Packagist](https://packagist.org/packages/websecret/laravel-google-api)[ RSS](/packages/websecret-laravel-google-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Google API Provider
-----------------------------

[](#laravel-5-google-api-provider)

### Install

[](#install)

Require this package with composer using the following command:

```
composer require websecret/laravel-google-api
```

### Usage

[](#usage)

```
$youtubeChannelsProvider = new \Websecret\LaravelGoogleApi\Provider\Youtube\Channels([
    'clientId' => config('services.google.client_id'),
    'clientSecret' => config('services.google.client_secret'),
]);

$youtubeChannelsProvider->setTokenAndRefreshIfNeeded([
    'access_token' => 'your access token',
    'refresh_token' => 'your refresh token',
    'expires' => 'time when token expires',
]);

$params = [
    'mine' => 'true',
    'part' => 'snippet,contentDetails,statistics',
];
$request = $youtubeChannelsProvider->getListRequest($params);
$response = $youtubeChannelsProvider->getParsedResponse($request);
```

Or if you have api key

```
$youtubeChannelsProvider = new \Websecret\LaravelGoogleApi\Provider\Youtube\Channels([
    'apiKey' => config('services.google.api_key'),
]);
```

#### Pagination

[](#pagination)

```
$youtubeChannelsPaginator = new \Websecret\LaravelGoogleApi\Paginator($youtubeChannelsProvider);

foreach($youtubeChannelsPaginator->paginate($youtubeChannelsProvider->getListRequest($params)) as $youtubeChannelsResponse) {
    foreach($youtubeChannelsResponse['items'] as $item) {
        dump($item);
    }
}
```

### Available providers

[](#available-providers)

- Google
    - Auth
        - authorize
        - handleAuthorization
- Plus
    - People
        - getUserIdRequest
- Youtube
    - Analytics
        - getReportsRequest
    - Channels
        - getListRequest
    - ContentID
        - getClaimSearchRequest
        - getAssetRequest
        - getAssetsListRequest
        - getContentOwnerListRequest
        - getContentOwnerRequest
    - I18nLanguages
        - getListRequest
    - I18nRegions
        - getListRequest
    - PlaylistItems
        - getListRequest
    - Playlists
        - getListRequest
    - Search
        - getListRequest
    - VideoCategories
        - getListRequest
    - Videos
        - getListRequest
- YoutubeAnalytics
    - Jobs
        - getListRequest
    - Reports
        - getListRequest
    - ReportTypes
        - getListRequest

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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/abdb67af22a253b27f7e36f79536cc87a418b0fdbeeb613ac5db0832e1fabcdd?d=identicon)[websecret](/maintainers/websecret)

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

---

Top Contributors

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

---

Tags

google-apigoogleapilaravelyoutube-api

### Embed Badge

![Health badge](/badges/websecret-laravel-google-api/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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