定制 n0m4dz/laracasa 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固