Download the PHP
package digitaldream/googleplace without Composer
On this page you can find all versions of the php package
digitaldream/googleplace. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor digitaldream Package googleplace Short Description Google Places API library License
MIT
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.
Location aware web application uses google-places-api(Place Search, Place Details, Geocoding , Distance Matrix, Timezone, Elevation
) a lot. They are not linked to each other also its hard to find a easy and time saving php libraray to work with these api. These libraray will need less knowldege about google api and give you flavour of OOP.
Setting
Add this line on your composer.json
You need to set your google api keys on top of your page. Like below
Nearby Search
A Nearby Search lets you search for places within a specified area. For example you can search all the Restaurents of your city.
Text Search
Text Search Service is a web service that returns information about a set of places based on a string — for example "pizza in New York"
Place Details
A Place Details request returns more comprehensive information about the indicated place such as its complete address, phone number, user rating and reviews. You need to pass place_id or a reference from a Place Search
Geocoding
You can get places by a place name or latitude and longitude.
Distance Matrix API
Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations, based on the recommended route between start and end points
Timezone API
Time Zone API provides time offset data for locations on the surface of the earth. The API returns the name of that time zone, the time offset from UTC, and the daylight savings offset.
Elevation API
Get the altitude(height from sea level in meters) of a given place.
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 digitaldream/googleplace contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.