2017 © Pedro Peláez
 

library laracasa

ZendGdata web album (Picasa) integration to Laravel

image

n0m4dz/laracasa

ZendGdata web album (Picasa) integration to Laravel

  • Thursday, July 2, 2015
  • by n0m4dz
  • Repository
  • 3 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laracasa - Laravel Picasa web album (Laravel 4)

Deprecated!!!

This package is based on Zend Gdata which provides Google API service., (*1)

Installation

Update your composer.json file to include this package as a dependency, (*2)

"n0m4dz/laracasa": "dev-master"

Register the Laracasa service provider by adding it to the providers array in the app/config/app.php file., (*3)

'providers' => array(
    'N0m4dz\Laracasa\LaracasaServiceProvider'
)

Alias the Laracasa facade by adding it to the aliases array in the app/config/app.php file., (*4)

'aliases' => array(
    'Laracasa' => 'N0m4dz\Laracasa\Facades\Laracasa'
)

Configuration

Generate the config file into your project by running, (*5)

php artisan config:publish n0m4dz/laracasa

This will generate a config file like this, (*6)

return array(
    'user' => '',
    'password' => '',
    'album' => ''
);

After generated config file set values in return array. user = your gmail id, password = your gmail password, album = picasa web album ID., (*7)

Usage

getAlbum function will retrieve all the photos from specific album., (*8)


Laracasa::getAlbum();

getPhotoById function will retrieve a photo from specific album., (*9)


Laracasa::getPhotoById($photo_id)

addPhoto function uploads a photo into album, then return uploaded photo ID., (*10)


Laracasa::addPhoto($_FILES['photo'])

deletePhoto function deletes a photo from album., (*11)


Laracasa::deletePhoto($photo_id);

Check Laracasa example in Gist., (*12)

ToDo

  • Add album functions
  • Improve Laracasa package
  • And many other things

The Versions

02/07 2015

dev-master

9999999-dev

ZendGdata web album (Picasa) integration to Laravel

  Sources   Download

The Requires

 

by Tseegii Tselmeg