kladislav/laravel-google-api
Google API Provider for Laravel projects
2,770
Larablocks Analysis
kladislav/laravel-google-api works with Laravel 6 to 10 (latest release 1.2, Jun 17, 2024), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 6 to 10, past end of life since Feb 4, 2025
- No release in the last 12 months (last: Jun 17, 2024)
- 8 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 17, 2024.
- No releases in the last 12 months.
- First released: Jun 7, 2021.
- Monthly downloads: 8.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.
| Install | |
|---|---|
composer require kladislav/laravel-google-api |
|
| Latest Version: | 1.2 |
| PHP: | >=7.2 |
| Laravel: | 6 – 10 |
| License: | MIT |
| Last Updated: | Jun 17, 2024 |
| Links: | GitHub · Packagist |
Maintainer: Kladislav
Laravel 7 Google API Provider
Install
Require this package with composer using the following command:
composer require kladislav/laravel-google-api
Usage
$youtubeChannelsProvider = new \Kladislav\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 \Kladislav\LaravelGoogleApi\Provider\Youtube\Channels([
'apiKey' => config('services.google.api_key'),
]);
Pagination
$youtubeChannelsPaginator = new \Kladislav\LaravelGoogleApi\Paginator($youtubeChannelsProvider);
foreach($youtubeChannelsPaginator->paginate($youtubeChannelsProvider->getListRequest($params)) as $youtubeChannelsResponse) {
foreach($youtubeChannelsResponse['items'] as $item) {
dump($item);
}
}
Available providers
- Google
- Auth
- authorize
- handleAuthorization
- Auth
- Plus
- People
- getUserIdRequest
- People
- 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
- Analytics
- YoutubeAnalytics
- Jobs
- getListRequest
- Reports
- getListRequest
- ReportTypes
- getListRequest
- Jobs
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
670,032,257
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
465,816,364
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
431,187,642
4,660
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.2 | >=7.2 | ^6.0 || | MIT | |
| v1.1 | >=7.2 | ^6.0 || | MIT | |
| v1.0 | >=7.2 | ^6.0 || | MIT |