Download the PHP package artisanpack-ui/google-business-profile without Composer
On this page you can find all versions of the php package artisanpack-ui/google-business-profile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artisanpack-ui/google-business-profile
More information about artisanpack-ui/google-business-profile
Files in artisanpack-ui/google-business-profile
Package google-business-profile
Short Description OAuth-free, UI-free API client for the Google Business Profile family of APIs (locations, performance, reviews, posts).
License MIT
Informations about the package google-business-profile
ArtisanPack UI Google Business Profile
OAuth-free, UI-free API client for the Google Business Profile family of APIs (accounts, locations, performance, reviews, posts, and media).
This package is a pure HTTP client built on Laravel's Http facade. It brings
no OAuth flow and no UI of its own. Callers pass in any TokenProvider — the
Keystone CMS plugin, for example, binds it to GoogleOAuthManager from
artisanpack-ui/google.
Google Business Profile API access is approval-gated per Google Cloud project. That gates production release, not local development against
Http::fake(). See the access-approval note for details.
Installation
The package auto-registers its service provider and the
GoogleBusinessProfile facade alias via Laravel's package discovery.
The TokenProvider contract
Every resource client accepts a TokenProvider and calls accessToken()
on it before each request. The client itself performs no OAuth — it
delegates token acquisition (including refresh) to whichever provider the
host application binds.
In Keystone CMS the provider is bound to GoogleOAuthManager, which
transparently refreshes expired tokens. In tests it is typically a stub
that returns a fixed string. Anywhere else, bind whatever fits.
See the TokenProvider guide for
worked examples of each binding style.
The four API families
The Google Business Profile surface is spread across four separate host names. This package wraps each family with a dedicated client that shares the same retry and error-mapping foundation:
| Family | Client | Base URL |
|---|---|---|
| Account Management | AccountManagementClient |
https://mybusinessaccountmanagement.googleapis.com/v1 |
| Business Information | BusinessInformationClient |
https://mybusinessbusinessinformation.googleapis.com/v1 |
| Legacy v4 (Reviews, Local Posts, Media) | ReviewsClient, LocalPostsClient, MediaClient |
https://mybusiness.googleapis.com/v4 |
| Performance | PerformanceClient |
https://businessprofileperformance.googleapis.com/v1 |
The full method-by-method map lives in docs/reference/api-families.md.
Testing with Http::fake()
Every client resolves the same Illuminate\Http\Client\Factory singleton
that the Http facade resolves, so Http::fake() works out of the box —
no bespoke test doubles required.
See the testing guide for retry behaviour, error mapping, and a full walk-through of faking each API family.
Documentation
The full documentation set lives in docs/:
- Getting started
- Guide — token providers, testing, and access approval
- Reference — the API-family map and per-client method list
Contributing
As an open source project, this package is open to contributions from anyone. Please read through the contributing guidelines to learn more about how you can contribute to this project.
All versions of google-business-profile with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
artisanpack-ui/core Version ^1.0