Description

This topic describes how to install and use PHP SDK V4.0.0 and later for Table Store. This topic assumes that you have activated Table Store and created an AccessKey ID and an AccessKey Secret.

  • If you have not activated Table Store or want to learn more about Table Store, visit the Table Store product page.

  • If you do not have an AccessKey ID and an AccessKey Secret, create an AccessKey in the Alibaba Cloud console.

Note

SDK V4.0.0 and later support multiple data versions and time to live (TTL). However, these SDK versions are not compatible with SDK V2.x.x.

SDK download

For more information about version iterations, see PHP SDK version history.

Version

Latest version: 5.0.0

Compatibility

For SDKs V4.x.x:

  • Compatible

For SDKs V2.x.x:

  • Incompatible

Change

  • 5.5.0
    • New features: Local transactions are supported.
    • New features: Search indexes are supported.
    • New features: Secondary indexes are supported.
  • 4.1.0

    Basic Stream operations are supported.

  • 4.0.0
    • PHP 5.5 and later are supported, such as 5.5, 5.6, 7.0, 7.1, and 7.2. Only 64-bit PHP systems are supported, and PHP 7 is recommended.
    • New features: TTL setting is enabled, and the table_options parameter is added to CreateTable and UpdateTable.
    • New features: Multiple data versions are supported. The timestamp setting is enabled for PutRow, UpdateRow, DeleteRow, and BatchGetRow. The max_versions parameter is added to GetRow, GetRange, and BatchGet.
    • New features: The auto increment feature is enabled for the primary key column. The return_type parameter is added to operations. The primary_key parameter is added to the response to return the primary key of the corresponding operation.
    • Changes: The underlying protobuf library is upgraded to the Google protobuf-php library.
    • Changes: The value of the primary_key parameter for each operation is changed to the list type to ensure the order of primary key columns.
    • Changes: The value of the attribute_columns parameter for each operation is changed to the list type to support multiple data versions.