PHPackages                             aliyun/aliyun-tablestore-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. aliyun/aliyun-tablestore-sdk-php

ActiveLibrary[Database &amp; ORM](/categories/database)

aliyun/aliyun-tablestore-sdk-php
================================

Aliyun Tablestore SDK for PHP

v6.0.1(2mo ago)31102.9k—9.5%20[9 issues](https://github.com/aliyun/aliyun-tablestore-php-sdk/issues)[5 PRs](https://github.com/aliyun/aliyun-tablestore-php-sdk/pulls)2MITPHPPHP &gt;=8.2CI failing

Since Feb 26Pushed 2mo ago10 watchersCompare

[ Source](https://github.com/aliyun/aliyun-tablestore-php-sdk)[ Packagist](https://packagist.org/packages/aliyun/aliyun-tablestore-sdk-php)[ Docs](https://www.aliyun.com/product/ots)[ RSS](/packages/aliyun-aliyun-tablestore-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (19)Versions (20)Used By (2)

Aliyun Tablestore SDK for PHP
=============================

[](#aliyun-tablestore-sdk-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/7db7c96e1b0c4e5471a9fc3cbf55eccd4178219374fcc579665c5a49a3382f24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6979756e2f616c6979756e2d7461626c6573746f72652d73646b2d7068702e737667)](https://packagist.org/packages/aliyun/aliyun-tablestore-sdk-php)[![License](https://camo.githubusercontent.com/f4022313bded1762ca6cefe1fe01ad4f129076aa69c0f3c8e7fc30d9b52e2a2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c6979756e2f616c6979756e2d7461626c6573746f72652d73646b2d7068702e737667)](LICENSE.md)

Aliyun Tablestore SDK for PHP，用于通过 PHP 访问[阿里云表格存储（Tablestore）](https://www.aliyun.com/product/ots)服务。

版本兼容性
-----

[](#版本兼容性)

SDK 版本PHP 版本要求维护状态6.x（当前版本）&gt;= 8.2（支持 8.2、8.3、8.4、8.5）**活跃维护**5.x&gt;= 5.5（支持 5.5 ~ 8.1）仅安全修复4.x&gt;= 5.5（支持 5.5 ~ 7.2）停止维护2.x&gt;= 5.3（支持 5.3 ~ 5.6）停止维护> **升级提示**：如果你正在使用 PHP 8.2 或更高版本，建议升级到 SDK 6.x 以获得最佳兼容性和性能。如果你仍在使用 PHP 5.5 ~ 8.1，请继续使用 SDK 5.x 版本。

仅支持 **64 位** PHP 系统。

环境要求
----

[](#环境要求)

- PHP &gt;= 8.2（64 位）
- 扩展：`curl`、`openssl`、`json`
- [Composer](https://getcomposer.org/)

安装
--

[](#安装)

### 通过 Composer 安装（推荐）

[](#通过-composer-安装推荐)

```
composer require aliyun/aliyun-tablestore-sdk-php
```

如果你需要安装旧版本以兼容低版本 PHP：

```
# 安装 5.x 版本（支持 PHP 5.5 ~ 8.1）
composer require aliyun/aliyun-tablestore-sdk-php:^5.0
```

### 手动安装

[](#手动安装)

1. 下载 SDK 并解压到本地。
2. 安装依赖：

    ```
    composer install --no-dev
    ```
3. 在你的 PHP 代码中引入自动加载文件：

    ```
    require_once 'vendor/autoload.php';
    ```

快速开始
----

[](#快速开始)

```
