n0m4dz/laracasa

There is no license information available for the latest version (dev-master) of this package.

ZendGdata web album (Picasa) integration to Laravel

dev-master 2015-07-02 11:56 UTC

This package is auto-updated.

Last update: 2024-10-28 18:50:53 UTC


README

Deprecated!!!

This package is based on Zend Gdata which provides Google API service.

Installation

Update your composer.json file to include this package as a dependency

"n0m4dz/laracasa": "dev-master"

Register the Laracasa service provider by adding it to the providers array in the app/config/app.php file.

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

Alias the Laracasa facade by adding it to the aliases array in the app/config/app.php file.

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

Configuration

Generate the config file into your project by running

php artisan config:publish n0m4dz/laracasa

This will generate a config file like this

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.

Usage

getAlbum function will retrieve all the photos from specific album.

Laracasa::getAlbum();

getPhotoById function will retrieve a photo from specific album.

Laracasa::getPhotoById($photo_id)

addPhoto function uploads a photo into album, then return uploaded photo ID.

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

deletePhoto function deletes a photo from album.

Laracasa::deletePhoto($photo_id);

Check Laracasa example in Gist.

ToDo

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