Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Google Places Api Laravel Package

skagarwal/google-places-api

PHP wrapper for Google Places API Web Service with Laravel support. Includes Places API and Places API (New) endpoints like autocomplete/search, built on Saloon in v3. Composer install, fluent client setup, configurable SSL and error handling.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Location-Based Features: Enables rapid development of location search, autocomplete, and place details for apps like food delivery, travel, or local business directories.
  • Roadmap Acceleration: Reduces time-to-market for geospatial features by leveraging a pre-built, Laravel-compatible wrapper for Google Places API (New).
  • Build vs. Buy: Avoids reinventing the wheel for API integration, error handling, and response parsing, while maintaining flexibility for customization.
  • Use Cases:
    • Search & Discovery: Autocomplete for address/place input fields (e.g., Uber, Yelp).
    • Nearby Services: Fetching restaurants, ATMs, or gas stations within a radius (e.g., food apps).
    • Place Details: Retrieving photos, ratings, or business hours for rich listings.
    • Photos: Dynamically fetching high-res images for dynamic UI (e.g., Airbnb).

When to Consider This Package

  • Adopt if:
    • Your Laravel app requires Google Places API integration (v1 or v2) with minimal boilerplate.
    • You need Saloon-based responses (collections, JSON, arrays) for seamless Laravel ecosystem integration.
    • Your team prioritizes maintenance (MIT-licensed, actively updated for Laravel 10–13).
    • You want field-specific queries (e.g., only fetch name and rating to reduce API costs).
  • Look elsewhere if:
    • You need offline maps or advanced routing (consider Google Maps SDK).
    • Your app requires custom geospatial logic beyond Google’s endpoints (e.g., complex polygon searches).
    • You’re using non-Laravel PHP (though the package supports vanilla PHP too).
    • You need real-time traffic/transit data (use Google Maps Directions API instead).

How to Pitch It (Stakeholders)

For Executives: "This package lets us integrate Google’s Places API into our Laravel app with weeks of dev time saved—no need to manually handle API keys, rate limits, or response parsing. It supports both the legacy and new Places APIs, ensuring future-proofing. For example, a food delivery feature could auto-suggest restaurants in real-time, reducing cart abandonment by 15% (based on industry benchmarks). The MIT license and active maintenance make it a low-risk, high-reward choice."

For Engineering: *"This is a Saloon-powered wrapper for Google Places API, offering:

  • Laravel-native responses (collections, JSON, arrays) with zero extra work.
  • Field-level control to optimize API calls (e.g., fetch only place_id and name).
  • Legacy + New API support—migrate at your own pace.
  • Configurable error handling (throw exceptions or handle silently).
  • Custom headers for enterprise needs (e.g., proxy setups). Example: Replace 50+ lines of Guzzle code with GooglePlaces::make()->nearbySearch(40.748817, -73.985428, 500)->collect().* Tradeoff: Minor learning curve for Saloon’s response methods, but docs are clear."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky