2017 © Pedro Peláez
 

cakephp-plugin google

CakePHP Google plugin

image

tirins/google

CakePHP Google plugin

  • Friday, May 29, 2015
  • by tirins
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

CakePHP Google API Plugin

Requirements

CakePHP v2.x
Opauth, (*1)

Installlation

  1. Use composer. Add following to the composer.json file:, (*2)

    "require": {
        "lubos/google": "~1.0"
    }

    And run php composer.phar update, (*3)

  2. Install required plugins with all dependcies and configuration (done via composer), (*4)

  3. Connect google's account with your application http://example.org/auth/google, (*5)

  4. Include needed model in your controller or anywhere you want to, (*6)

    $uses = array('Google.GoogleDriveFiles');
    ...
    $data = $this->GoogleDriveFiles->listItems();
    debug ($data);
    
    $data = ClassRegistry::init('Google.GoogleDriveFiles')->listItems();
    debug ($data);
    

Sample

  1. Install CakePHP Google API Plugin sample, (*7)

    git clone --recursive https://github.com/LubosRemplik/CakePHP-Google-API-Plugin-sample.git google-sample-app
    
  2. Create database & run bake, schema scripts, (*8)

    # basic cakephp installation
    cd google-sample-app/app
    chmod -R 777 tmp
    Console/cake bake db_config
    
    # schema
    Console/cake schema create -p Opauth
    
  3. Configure - set google's credentials
    Copy bootstrap.php.default to bootstrap.php and add your client_id, client_secret. You can get these details at https://code.google.com/apis/console/, (*9)

    cp Config/bootstrap.php.default Config/bootstrap.php
    vim Config/bootstrap.php
    

Note You have to configure Opauth correctly, (*10)

The Versions

29/05 2015

dev-master

9999999-dev

CakePHP Google plugin

  Sources   Download

The Requires

 

29/05 2015

1.0.3

1.0.3.0

CakePHP Google plugin

  Sources   Download

The Requires

 

21/03 2014

1.0.2

1.0.2.0

CakePHP Google plugin

  Sources   Download

The Requires

 

21/03 2014

1.0.1

1.0.1.0

CakePHP Google plugin

  Sources   Download

The Requires

 

21/03 2014

1.0.0

1.0.0.0

CakePHP Google plugin

  Sources   Download

The Requires