| Package Data | |
|---|---|
| Maintainer Username: | n0m4dz |
| Maintainer Contact: | tseegii.it@gmail.com (Tseegii Tselmeg) |
| Package Create Date: | 2014-11-08 |
| Package Last Update: | 2015-07-02 |
| Language: | PHP |
| License: | Unknown |
| Last Refreshed: | 2025-12-10 03:00:41 |
| Package Statistics | |
|---|---|
| Total Downloads: | 46 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 3 |
| Total Forks: | 1 |
| Total Open Issues: | 1 |
This package is based on Zend Gdata which provides Google API service.
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'
)
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.
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.