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

Simple G Maps Laravel Package

alfamegaxq/simple-g-maps

View on GitHub
Deep Wiki
Context7

google maps places snippets bunde

###Whats inside?

  • City autocomplete input for defined country.

Requirements

  • jQuery
  • jQuery UI
  • bundle depends on GuzzleHttp/guzzle

Installation

  • in AppKernel.php
new SimpleGMapsBundle\SimpleGMapsBundle(),
  • add routes in routing.yml
google_autosuggest:
    resource: "@SimpleGMapsBundle/Controller/"
    type:     annotation

-include scripts

<script src="{{ asset('bundles/gmaps/js/script.js') }}"></script>

Usage

  • render action in where you want input to be
    {{ render(controller('GMapsBundle:Suggest:renderCitySuggest', {
        inputParams: 'name="text" class="city_suggest"',
        language: 'de',
        country: 'de'
    })) }}
  • stylize how you want. Don't forget to include "Powered by google" logo if oyu dont use google map

Extending

Feel free to create pull requests to add more google places features

Just preserve idea, that each feature should be realy easy to implement.

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.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin