n0m4dz / laracasa
ZendGdata web album (Picasa) integration to Laravel
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
pkg:composer/n0m4dz/laracasa
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is auto-updated.
Last update: 2025-11-28 21:15:27 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