net-tools/cloudconvert
Composer 安装命令:
composer require net-tools/cloudconvert
包简介
Composer library for Cloud Convert API
README 文档
README
Composer library to interface with CloudConvert API
Cloudconvert is a web based service which converts files between multiple file formats. I personnaly use the CloudConvert API to transform PDF files to txt files (I can't search in a PDF file within PHP, but if I convert it to a plain text file, I may use any string search function).
Setup instructions
To install net-tools/core package, just require it through composer : require net-tools/cloudconvert:^1.0.0.
How to use ?
The Client class must be instantiated with an API key (get it from you CloudConvert account). Then, use any of the following method :
- listConversions
- deleteConversion
- deleteConversions
- convertDownload (the file to be converted is downloaded on your website)
- convertUploadData (the data to be converted is a string)
- convertUpload (the file to be converted is uploaded with the request)
For details about parameters and values returned, you may refer to the CloudConvert API, as this Client class in only a facade pattern, abstracting technical details, such as performing the actual HTTP request, to the end-user.
Sample
// $APIKEY must contain the API key from your CloudConvert account // $URL refers to a file hosted on your website will be downloaded // and converted (e.g. : http://mysite.info/test.pdf). $client = new Nettools\CloudConvert\Client($apikey); $client->convertDownload('pdf', 'txt', $url, array('download'=>'inline')); // and also : $client->convertUpload('pdf', 'txt', '/home/tmp/mypdf.pdf', array('download'=>'inline'));
net-tools/cloudconvert 适用场景与选型建议
net-tools/cloudconvert 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 net-tools/cloudconvert 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 net-tools/cloudconvert 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-01