dev-master
9999999-devZendGdata web album (Picasa) integration to Laravel
The Requires
- php >=5.4.0
- illuminate/support 4.2.*
by Tseegii Tselmeg
Wallogit.com
2017 © Pedro Peláez
ZendGdata web album (Picasa) integration to Laravel
This package is based on Zend Gdata which provides Google API service., (*1)
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'
)
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)
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)
ZendGdata web album (Picasa) integration to Laravel