Download the PHP package tributemedia/google_calendar_events without Composer

On this page you can find all versions of the php package tributemedia/google_calendar_events. 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_calendar_events

Google Calendar Events

This Drupal 9 module syncs locally created Event nodes with the Google Calendar of a configured calendar.

Features

Installation

There are a few dependencies you'll need to get first before installing the module. You'll need the following Drupal modules:

Once those are installed, go ahead and install the module itself:

composer require tributemedia/google_calendar_events

After the install, make sure one final composer dependency is installed called google/apiclient. If you don't see that it was installed during the install of the module itself, you'll want to install it.

composer require google/apiclient

Finally, you're ready to install the module in the Drupal interface! Go ahead and do so, there should be no issues at this point.

Configuration

Service Account & Key

Now that the module is installed, it must be configured before it's ready to use. If you haven't already, go to the Google console and create a project, and within that project create a service account and then give it a service key. Here are some instructions if you don't know how to do that:

Once you have those, in the admin menu, navigate to Configuration -> System -> Keys. Select 'Add Key'. Fill out as such:

If a field wasn't included in the list, you can leave it blank. You can now save and the key will be available to the module.

Just one last thing with the service account! You'll need to share the calendar you want to have synced with the service account. Each service account in Google has an associated, spammy looking email address. You'll need to find that and share the calendar in question with it.

Module Config

Now we're ready to config the module itself! In the admin menu, navigate to Configuration -> Web services -> Google Calendar Events Settings. If you configured the service key correctly, you'll see a message prompting you for an API Subject. This is simply the email address of a person who manages the service account you created. Go ahead and supply that in this field, save, and if everything is configured correctly, you'll have additional self-explanatory options available! You can pick from multiple calendars, if your service key and API subject have access to them.

Usage

Using the module after configuration is simple! Events will be synced automatically every 12 hours, but if you want a run sooner than that (especially for your first batch of events!), then you can navigate to Configuration -> Web services -> Google Calendar Events Status. Once here, click the 'Check Events' button, and you'll have queued up a cron job for the module to check for events. You can then run cron to get the events.

You also have access to a built-in view to display events, once you have them. The view has a page display configured at the path /events.

Cron Workflow

In case you're curious about the cron workflow, there are two workers. The first checks for new events, or updated ones, when a job is queued to the google_calendar_events_ccq. CCQ stands for Calendar Check Queue.

If the CCQ worker detects a new events, or the need to update an existing one, a job is queued on the google_calendar_events_ceq. CEQ is short for Calendar Event Queue. The CEQ's job is to then create a new event, or update the existing one with the new start and/or end times.


All versions of google_calendar_events with dependencies

PHP Build Version
Package Version
Requires google/apiclient Version ~2.12
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 tributemedia/google_calendar_events contains the following files

Loading the files please wait ....