n0m4dz/laracasa
Composer 安装命令:
composer require n0m4dz/laracasa
包简介
ZendGdata web album (Picasa) integration to Laravel
README 文档
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
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-11-08