speicher210/cloudinary-bundle
Composer 安装命令:
composer require speicher210/cloudinary-bundle
包简介
Bundle for Cloudinary PHP API library
关键字:
README 文档
README
Install
Add speicher210/cloudinary-bundle to your composer.json file:
composer require "speicher210/cloudinary-bundle"
Register the bundle:
<?php // config/bundles.php return [ // ... Speicher210\CloudinaryBundle\Speicher210CloudinaryBundle::class => ['all' => true], // ... ];
Usage
Configure the connection to cloudinary in your config.yaml :
speicher210_cloudinary: url: cloudinary://my-key:my-secret@my-cloud # The next configuration variables should be defined if they are not present in the URL # The URL will take precedence cloud_name: my-cloud access_identifier: api_key: my-key api_secret: my-secret secure: true
The following services will be available:
$this->get('speicher210_cloudinary.cloudinary'); // Extension of Cloudinary from cloudinary package. $this->get('speicher210_cloudinary.api'); // Extension of Cloudinary\Api from cloudinary package. $this->get('speicher210_cloudinary.uploader'); // Extension of Cloudinary\Uploader from cloudinary package.
You can pass the same options to the twig filter or function:
{{ cloudinary-public-id | cloudinary_url({'width': 50, 'height': 50, 'crop': 'fill'}) }}
{{ cloudinary_url('cloudinary-public-id', {'width': 50, 'height': 50, 'crop': 'fill'}) }}
{{ cloudinary_image_tag('cloudinary-public-id', {'height' : 150}) }}
{{ cloudinary_video_tag('cloudinary-public-id', {'height' : 150}) }}
For further documentation see Cloudinary PHP library
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
speicher210/cloudinary-bundle 适用场景与选型建议
speicher210/cloudinary-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 164.44k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 07 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「bundle」 「cloudinary」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 speicher210/cloudinary-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 speicher210/cloudinary-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 speicher210/cloudinary-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Cloudinary Flysystem 3 integration with Laravel
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
Bundle Symfony DaplosBundle
统计信息
- 总下载量: 164.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-03