cloudinary/cloudinary_php
Composer 安装命令:
composer require cloudinary/cloudinary_php
包简介
Cloudinary PHP SDK
README 文档
README
Cloudinary PHP SDK
About
The Cloudinary PHP SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize, transform, upload and manage your cloud's assets.
Note
This Readme provides basic installation and usage information. For the complete documentation, see the PHP SDK Guide.
Table of Contents
Key Features
- Transform and optimize assets.
- Generate image and video tags.
- Asset Management.
- Secure URLs.
Version Support
| SDK Version | PHP 5.4 | PHP 5.5 | PHP 5.6 | PHP 7.x | PHP 8.0 - 8.3 | PHP 8.4 |
|---|---|---|---|---|---|---|
| 3.x | ✘ | ✘ | ✘ | ✘ | ✔ | ✔ |
| 2.x | ✘ | ✘ | ✔ | ✔ | ✔ | ✘ * |
| 1.x | ✔ | ✔ | ✔ | ✔ | ✘ | ✘ |
* Deprecation warnings
Installation
composer require "cloudinary/cloudinary_php"
Usage
Migration
See the Cloudinary PHP SDK Migration guide for more information on migrating to this version of the PHP SDK.
The previous (1.x) version of the SDK is located here.
Setup
use Cloudinary\Cloudinary; $cloudinary = new Cloudinary();
Transform and Optimize Assets
$cloudinary->image('sample.jpg')->resize(Resize::fill()->width(100)->height(150))->format(Format::auto());
Upload
$cloudinary->uploadApi->upload('my_image.jpg');
Security options
Contributions
- Ensure tests run locally
- Open a PR and ensure Travis tests pass
Get Help
If you run into an issue or have a question, you can either:
- Issues related to the SDK: Open a GitHub issue.
- Issues related to your account: Open a support ticket
About Cloudinary
Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.
Additional Resources
- Cloudinary Transformation and REST API References: Comprehensive references, including syntax and examples for all SDKs.
- MediaJams.dev: Bite-size use-case tutorials written by and for Cloudinary Developers
- DevJams: Cloudinary developer podcasts on YouTube.
- Cloudinary Academy: Free self-paced courses, instructor-led virtual courses, and on-site courses.
- Code Explorers and Feature Demos: A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
- Cloudinary Roadmap: Your chance to follow, vote, or suggest what Cloudinary should develop next.
- Cloudinary Facebook Community: Learn from and offer help to other Cloudinary developers.
- Cloudinary Account Registration: Free Cloudinary account registration.
- Cloudinary Website: Learn about Cloudinary's products, partners, customers, pricing, and more.
Licence
Released under the MIT license.
cloudinary/cloudinary_php 适用场景与选型建议
cloudinary/cloudinary_php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14.4M 次下载、GitHub Stars 达 398, 最近一次更新时间为 2012 年 11 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sdk」 「cloud」 「cdn」 「cloudinary」 「image management」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cloudinary/cloudinary_php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cloudinary/cloudinary_php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cloudinary/cloudinary_php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
UCloud Resource (Cloud) Storage SDK for PHP
The flysystem adapter for yandex disk rest api.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
非官方云小票机SDK,支持飞鹅云,芯烨云,易联云,快递100,映美云,中午云,佳博云,优声云,365智能云打印等
统计信息
- 总下载量: 14.4M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 408
- 点击次数: 20
- 依赖项目数: 126
- 推荐数: 3
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-06