Download the PHP package lquintana/google-places-popular-times without Composer

On this page you can find all versions of the php package lquintana/google-places-popular-times. 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-places-popular-times

GooglePopularTime for Laravel

The MIT License Latest Version on Packagist Total Downloads Laravel

Introduction

Using this package you can get a list of places with its popular times or also a place details with its popular times. Time and percentage of popularity for certain time is also included in the results.

Follow the google API documentation to understand their requirements and use this package https://developers.google.com/places/web-service/intro

Requirements

Installation

Via Composer

Configuration

You need to create a google key from the google console give it the rigth permisions to use places API. Add the following variables to the .env file in your project Laravel and replace the string YOUR-GOOGLE-KEY for the google key.

Publish the config file with following artisan command

Usage

Here there is an example of url when trying to get a list of popular places. http://places.test/api/places?location=26.189774,-80.103775&radius=5000&keyword=restaurants

You should add the route places to route/api.php or create the route in any convinient location for your project

@ This is an example of my controller in Laravel. You can find the method index which will list places with its own popular time for each of them

Here Some screenshots with the result from the previous method.

screen shot 2019-02-25 at 9 49 53 am




if you open the key popular times it contains all the days of the week

screen shot 2019-02-25 at 9 49 27 am



screen shot 2019-02-25 at 9 51 21 am

This is an example of the url to get a place with its own popular times. http://places.test/api/places/ChIJ5z2kxpsB2YgRjUgd_WuWdWc

Google Places API Minimum params required placeid, ex placeid=ChIJde9xlp4B2YgRVl9hn3TriiI

@ The next code is an example of my controller in Laravel. You can find the method index which list places with its own popular time for each of them and the method show to show only one place with its own popular times.

This is an example of the url to get a place with its own popular times. http://places.test/api/places/ChIJ5z2kxpsB2YgRjUgd_WuWdWc

In the results you can find the time and percentage of popularity in that time. screen shot 2020-08-28 at 9 51 21 am

If you just want a list of places without popular time this is the method

If you just want a place details without popular time this is the method

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.


All versions of google-places-popular-times with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5|~6|~7
friendsofphp/php-cs-fixer Version ^2.16
guzzlehttp/guzzle Version ^6.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 lquintana/google-places-popular-times contains the following files

Loading the files please wait ....