# Qiniu Cloud SDK for PHP
[![doxygen.io](http://doxygen.io/github.com/qiniu/php-sdk/?status.svg)](http://doxygen.io/github.com/qiniu/php-sdk/)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
[![Build Status](https://travis-ci.org/qiniu/php-sdk.svg)](https://travis-ci.org/qiniu/php-sdk)
[![Latest Stable Version](https://img.shields.io/packagist/v/qiniu/php-sdk.svg)](https://packagist.org/packages/qiniu/php-sdk)
[![Total Downloads](https://img.shields.io/packagist/dt/qiniu/php-sdk.svg)](https://packagist.org/packages/qiniu/php-sdk)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/qiniu/php-sdk/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/qiniu/php-sdk/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/qiniu/php-sdk/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/qiniu/php-sdk/?branch=master)
[![Join Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/qiniu/php-sdk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![@qiniu on weibo](http://img.shields.io/badge/weibo-%40qiniutek-blue.svg)](http://weibo.com/qiniutek)
## 安装
* 通过composer,这是推荐的方式,可以使用composer.json 声明依赖,或者运行下面的命令。SDK 包已经放到这里 [`qiniu/php-sdk`][install-packagist] 。
```bash
$ composer require qiniu/php-sdk
```
* 直接下载安装,SDK 没有依赖其他第三方库,但需要参照 composer的autoloader,增加一个自己的autoloader程序。
## 运行环境
| Qiniu SDK版本 | PHP 版本 |
|:--------------------:|:---------------------------:|
| 7.x | cURL extension, 5.3 - 5.6,7.0 |
| 6.x | cURL extension, 5.2 - 5.6 |
## 使用方法
### 上传
```php
use Qiniu\Storage\UploadManager;
use Qiniu\Auth;
...
$upManager = new UploadManager();
$auth = new Auth($accessKey, $secretKey);
$token = $auth->uploadToken($bucketName);
list($ret, $error) = $upManager->put($token, 'formput', 'hello world');
...
```
## 测试
``` bash
$ ./vendor/bin/phpunit tests/Qiniu/Tests/
```
## 常见问题
- $error保留了请求响应的信息,失败情况下ret 为none, 将$error可以打印出来,提交给我们。
- API 的使用 demo 可以参考 [单元测试](https://github.com/qiniu/php-sdk/blob/master/tests)。
## 代码贡献
详情参考[代码提交指南](https://github.com/qiniu/php-sdk/blob/master/CONTRIBUTING.md)。
## 贡献记录
- [所有贡献者](https://github.com/qiniu/php-sdk/contributors)
## 联系我们
- 如果需要帮助,请提交工单(在portal右侧点击咨询和建议提交工单,或者直接向 support@qiniu.com 发送邮件)
- 如果有什么问题,可以到问答社区提问,[问答社区](http://qiniu.segmentfault.com/)
- 更详细的文档,见[官方文档站](http://developer.qiniu.com/)
- 如果发现了bug, 欢迎提交 [issue](https://github.com/qiniu/php-sdk/issues)
- 如果有功能需求,欢迎提交 [issue](https://github.com/qiniu/php-sdk/issues)
- 如果要提交代码,欢迎提交 pull request
- 欢迎关注我们的[微信](http://www.qiniu.com/#weixin) [微博](http://weibo.com/qiniutek),及时获取动态信息。
## 代码许可
The MIT License (MIT).详情见 [License文件](https://github.com/qiniu/php-sdk/blob/master/LICENSE).
[packagist]: http://packagist.org
[install-packagist]: https://packagist.org/packages/qiniu/php-sdk
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的社区团购小程序
共269个文件
php:179个
html:71个
md:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 89 浏览量
2024-01-10
23:28:20
上传
评论
收藏 411KB ZIP 举报
温馨提示
基于PHP的社区团购小程序 - 不懂运行,下载完可以私聊问,可远程教学 该资源内项目源码是个人的毕设,代码都测试ok,都是运行成功后才上传资源,答辩评审平均分达到96分,放心下载使用! <项目介绍> 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用于商业用途。 --------
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的社区团购小程序 (269个子文件)
phpunit.xml.dist 552B
.gitignore 130B
.htaccess 13B
a.html 79KB
edit.html 26KB
productList.html 13KB
add.html 13KB
productEdit.html 11KB
productAdd.html 9KB
history.html 9KB
history_back.html 9KB
index.html 9KB
edit.html 8KB
plist.html 7KB
index.html 7KB
index.html 7KB
history.html 7KB
add.html 7KB
index.html 7KB
index.html 6KB
adminList.html 6KB
login.html 5KB
applyList.html 5KB
menuList.html 5KB
menuEdit.html 5KB
image.html 5KB
login.html 5KB
roleEdit.html 5KB
join_us.html 5KB
adminEdit.html 4KB
menuAdd.html 4KB
roleAdd.html 4KB
adminAdd.html 4KB
index.html 4KB
saleAmount.html 4KB
welcome.html 3KB
stockList.html 3KB
tagList.html 3KB
saleDetail.html 3KB
changePassword.html 3KB
detail.html 3KB
stockAdd.html 3KB
cateIndex.html 3KB
unitIndex.html 3KB
index.html 3KB
shouye.html 3KB
roleList.html 3KB
productCount.html 3KB
readyImg.html 3KB
wApp.html 2KB
about_us.html 2KB
register.html 2KB
upload.html 2KB
headerConfig.html 2KB
address.html 2KB
groupPush.html 2KB
contact_us.html 2KB
index.html 2KB
withdrawList.html 2KB
addTag.html 2KB
editUnit.html 2KB
editCate.html 2KB
header.html 2KB
404.html 1KB
404.html 1KB
downList.html 1KB
header.html 1KB
header.html 1KB
footer.html 1KB
footer.html 1KB
footer.html 1KB
test.html 595B
report.html 348B
register.html 313B
composer.json 670B
LICENSE 1KB
README.md 3KB
CHANGELOG.md 2KB
README.md 1KB
CONTRIBUTING.md 1KB
README.md 599B
apiclient_key_old.pem 2KB
apiclient_cert_old.pem 2KB
public_old.pem 451B
WxPay.Data.php 90KB
Header.php 43KB
Leader.php 35KB
WxPay.Api.php 31KB
User.php 27KB
extend.php 26KB
Pub.php 22KB
BucketManager.php 16KB
Group.php 15KB
Product.php 13KB
common.php 12KB
config.php 11KB
ImageUrlBuilderTest.php 11KB
ImageDraw.php 10KB
Excel.php 10KB
PayResult.php 8KB
共 269 条
- 1
- 2
- 3
资源评论
机智的程序员zero
- 粉丝: 1597
- 资源: 4137
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功