Download the PHP package aliyun/aliyun-tablestore-sdk-php without Composer

On this page you can find all versions of the php package aliyun/aliyun-tablestore-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aliyun-tablestore-sdk-php

Aliyun TableStore SDK for PHP - Version 5

说明

Aliyun OTS SDK for PHP,用来通过PHP访问阿里云OTS服务。

适用于PHP 5.5 及以上版本,包括7.0、7.1、7.2、8.0、8.1。只支持64位的PHP系统。推荐使用PHP7,以得到最好的性能。

当前仅支持Linux,其他系统需要用户自己改造代码支持。

使用步骤

  1. 请确认你的PHP版本为 5.5 或更高。你可以通过运行 php --version 获知你当前使用的PHP版本。

  2. 设置PHP的时区,在 php.ini(要知道你正在使用的php.ini文件的位置,请执行命令 php --ini)中添加一行:

    date.timezone = Asia/Shanghai (请根据你当地的时区进行设置)

  3. 设置PHP的内存使用限制为512M或者更高。同样是在 php.ini 中修改:

    memory_limit = 512M

  4. 下载SDK并解压到本地。

  5. 安装依赖。在解压后的目录中执行命令:

    php tools/composer.phar install --no-dev

  6. 生成 autoload。 在解压后的目录中执行命令:

    php tools/composer.phar dumpautoload --no-dev

    这条命令会生成 vendor/autoload.php 文件。

  7. 在你的PHP代码文件中引用(require)上一个步骤中生成的 vendor/autoload.php 文件。

编程文档

我们提供了HTML格式的文档,请在浏览器中打开这些文档。

  1. 文档主页:docs/index.html

  2. SDK的调用入口 OTSClient:docs/classes/Aliyun.OTS.OTSClient.html

    这个文档中有丰富的代码样例,详细说明了每个API的使用方法。

  3. 客户端配置:docs/classes/Aliyun.OTS.OTSClientConfig.html

  4. 重试策略:docs/namespaces/Aliyun.OTS.Retry.html

  5. 服务端返回的错误:docs/classes/Aliyun.OTS.OTSServerException.html

  6. 客户端返回的错误:docs/classes/Aliyun.OTS.OTSClientException.html

运行Sample程序

  1. 修改 examples/ExampleConfig.php, 补充配置信息
  2. 执行 cd examples/
  3. 选择需要的样例运行,例如 php PKAutoIncrment.php, 表格列自增功能的示例。

运行单元测试

  1. 执行composer install下载依赖的库
  2. 如果是php 7.2,还需要 composer require --dev phpunit/phpunit "^5.7.11",升级下phpunit的版本,才能支持。
  3. 设置环境变量

    export SDK_TEST_ACCESS_KEY_ID=access-key-id
    export SDK_TEST_ACCESS_KEY_SECRET=access-key-secret
    export SDK_TEST_END_POINT=endpoint
    export SDK_TEST_INSTANCE_NAME=instance-name
  4. 执行 php vendor/bin/phpunit

贡献代码

帮助和支持 FAQ

扫码加入TableStore讨论群,和我们直接交流讨论

tablestoregroup


All versions of aliyun-tablestore-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
guzzlehttp/guzzle Version ^5.3.1|^6.2.1|^7.2.0
guzzlehttp/psr7 Version ^1.4.1
guzzlehttp/promises Version ~1.0
google/protobuf Version ^3.5
google/flatbuffers Version 22.9.29
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aliyun/aliyun-tablestore-sdk-php contains the following files

Loading the files please wait ....