承接 teepluss/cloudinary 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

teepluss/cloudinary

Composer 安装命令:

composer require teepluss/cloudinary

包简介

Cloudinary API wrapper for Laravel 4

README 文档

README

Cloudinary streamlines your entire image management pipeline - upload, storage, administration, manipulation and delivery.

Installation

To get the lastest version of Theme simply require it in your composer.json file.

"teepluss/cloudinary": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated.

Once Theme is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.

'providers' => array(

    'Teepluss\Cloudinary\CloudinaryServiceProvider'

)

Theme also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file.

'aliases' => array(

    'Cloudy' => 'Teepluss\Cloudinary\Facades\Cloudy'

)

Publish config using artisan CLI.

php artisan config:publish teepluss/cloudinary

Usage

After published cloudinary config you need to set up api detail, such as key, secrey, url, etc.

This wrapper api provide simple methods to upload, rename, delete, tag manage and full features from original cloudinary class methods.

$tags = array(
    'tag_a',
    'tag_b',
    'tag_c'
);

Cloudy::upload($_FILES['tmp_name'], 'custom_public_name', $tags);

//Cloudy::upload('/path/to/local/image', 'custom_public_name', $tags);

//Cloudy::upload('http://domain.com/remote.jpg', 'custom_public_name', $tags);

Display an image.

Cloudy::show('custom_public_name', array('width' => 150, 'height' => 150, 'crop' => 'fit', 'radius' => 20));

More document from cloudinary.com

Rename file, Delete file.

Cloudy::rename('from_public_id', 'to_public_id');

Cloudy::destroy('public_id');

Manage with tag.

Cloudy::addTag('tag_d', array('public_id_1', 'public_id_2'));

Cloudy::removeTag('tag_d', array('public_id_1', 'public_id_2'));

Cloudy::replaceTag('tag_e', array('public_id_1', 'public_id_2'));

You can use original library from cloudinary also.

// Get cloudinary.
$cloudinary = Cloudy::getCloudinary();

// Get cloudinary uploader
$uploader = Cloudy::getUploader();

To see more detail visit @ https://github.com/cloudinary/cloudinary_php

Support or Contact

If you have some problem, Contact teepluss@gmail.com

Support via PayPal

统计信息

  • 总下载量: 10.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 2
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固