genj/google-drive-bundle

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Genj Google Drive bundle

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 1

Open Issues: 0

Type:symfony-bundle

dev-master 2015-06-08 12:28 UTC

This package is not auto-updated.

Last update: 2021-09-18 00:00:12 UTC


README

Features:

  • provides command to sync files from a Google Drive folder with a local folder
  • provides action to view the synced files as a slideshow

Requirements

Installation

Add this to your composer.json:

    ...
    "require": {
        ...
        "genj/google-drive-bundle": "dev-master"
        ...

Then run composer update. After that is done, enable the bundle in your AppKernel.php:

# app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles() {
        $bundles = array(
            ...
            new Genj\GoogleDriveBundle\GenjGoogleDriveBundle()
            ...

Copy the routing rules from Resources/config/routing.yml to your routing.yml.

Configuration

You need to get the following information from the Google API Console ( https://code.google.com/apis/console ):

  • Service account API key file (this file is expected to be in the app/config/ folder)
  • Service account e-mail address

Add these to your parameters.yml:

genj_google_drive.service_account_key_file:
genj_google_drive.service_account_email:

Usage

Run the sync:

$ php app/console genj:google-drive:sync