Download the PHP package wearesho-team/google-autocomplete without Composer

On this page you can find all versions of the php package wearesho-team/google-autocomplete. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-autocomplete

Google API Autocomplete Integration

Build Status codecov

This library allows you to search cities/streets of concrete country using google api.

Changelog

Installation

Usage

Create configuration

Or use Environment Config to load variables from environment

Variable Required Default value Description
GOOGLE_SERVICE_AUTOCOMPLETE_URL no https://maps.googleapis.com/maps/api/place/autocomplete/json url for google-autocomplete-api service
GOOGLE_SERVICE_AUTOCOMPLETE_COUNTRY no ua ISO alpha-2 country code in lower case
GOOGLE_SERVICE_AUTOCOMPLETE_KEY yes your private key

Create service

Create search data entity

Session token

A random string which identifies an autocomplete session for billing purposes for user In google-docs sad if this parameter is omitted from an autocomplete request, the request is billed independently. So this service is binding to use it.

Recommended to use hash string.

Searching cities

Searching streets

If you want to customize your queries use Query Interfaces

Receive suggestions

Search mode

Service have 2 modes for searching results:

This parameter is optional. By default set FULL() mode.

Yii2 configuration

If you need to configure your yii2 application, you can use this yii extension, that depend on this package

Contributing

To contribute you need to fork this repo and than create a pull request

Search language

Add language code to SearchLanguage.php

Frameworks configurations

Add directory with name of needs framework to source directory and create your Bootstrap.php file

Authors

License


All versions of google-autocomplete with dependencies

PHP Build Version
Package Version
Requires php Version >7.1
horat1us/environment-config Version ^1.2
guzzlehttp/guzzle Version ^6.3
myclabs/php-enum Version ^1.6
wearesho-team/base-collection Version ^1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wearesho-team/google-autocomplete contains the following files

Loading the files please wait ....