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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware