Download the PHP package goldfinch/google-maps without Composer

On this page you can find all versions of the php package goldfinch/google-maps. 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-maps

πŸ¦… Google Maps for Silverstripe

Silverstripe Version Package Version Total Downloads License

The module helps to create and manage Google Maps 🌏 in your Silverstripe project. It comes with comprehensive settings that you can use to your advantage. Whether you need to create simple or complex maps πŸ—ΊοΈ, markers πŸ“ and more.

Install

1. Install module

2. Create Google Cloud API key with the required libraries

There are two API Libraries that need to be enabled for the proper work of this module.

3. Add Google Cloud API key to your .env

4. Implement JavaScript front-end component

via Silverstripe Requirements PHP

via template require

via ES6 module

Available Taz commands

If you haven't used TazπŸŒͺ️ before, taz file must be presented in your root project folder cp vendor/goldfinch/taz/taz taz


Create map segment

Create InfoWindow template

Create MapBlock extension

Create Config extension

Create MapsAdmin extension

Create MapSegment extension

Create full Yaml config (further config amends are required, you might want to remove what you don't need)

Publish all available templates

Runs a bundle of all available vendor:google-maps:* commands

How to create a new map

Each Google Map is built on what is called Map Segment.

1. Create a map segment

Use TazπŸŒͺ️ to generate new Map Segment. It will quickly lead you through the setup and take care of it for you.

2. Create map record in CMS

Go to /admin/maps and add new map. In the Type we need to select our map segment that has been created the step before (should be selected by default). You can go ahead, add markers and check out the Settings tab if you want.

3. Custom Info Window template (optional)

This module comes with various settings for Maps and Markers. You can also add Info Window for markers and easily customize it for your needs. All you need to do is create your custom InfoWindow template by using Taz

Once it's been created, you can go to any marker record you added to your map and select your custom template in Info Window Template dropdown.

Usage

Across templates

Using GoogleMaps global provider.

Render map segment template by type

Render map frame only by type

Render map segment template by ID

Render map frame only by ID

Using elemental block

If you prefer using silverstripe/silverstripe-elemental, you can take a look at Map block that already comes with this module.

Sidenotes

Google Maps iframes might have a blue border that you want to get rid of.

As of February 21st, 2024, Marker is deprecated. Please use AdvancedMarkerElement instead.

Events

Available JavaScript callback events

Previews

Admin

Map segment

Map segment settings

Map's markers

Marker item

Marker settings

License

The MIT License (MIT)


All versions of google-maps with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
silverstripe/framework Version ^5.0
silverstripe/admin Version ^2.0
goldfinch/fielder Version ^2.0
goldfinch/google-fields Version ^1.0
goldfinch/json-editor Version ^2.0
goldfinch/helpers Version ^2.0
goldfinch/taz Version ^2.0
jonom/silverstripe-someconfig Version ^1.0
silvershop/silverstripe-hasonefield Version dev-main
dnadesign/silverstripe-elemental Version ^5.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 goldfinch/google-maps contains the following files

Loading the files please wait ....