Download the PHP package volcengine/volc-sdk-php without Composer

On this page you can find all versions of the php package volcengine/volc-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 volc-sdk-php

火山引擎SDK for PHP

欢迎使用火山引擎SDK for PHP,本文档为您介绍如何获取及调用SDK。

前置准备

服务开通

请确保您已开通了您需要访问的服务。您可前往火山引擎控制台,在左侧菜单中选择或在顶部搜索栏中搜索您需要使用的服务,进入服务控制台内完成开通流程。

获取安全凭证

Access Key(访问密钥)是访问火山引擎服务的安全凭证,包含Access Key ID(简称为AK)和Secret Access Key(简称为SK)两部分。您可登录火山引擎控制台,前往“访问控制”的“访问密钥”中创建及管理您的Access Key。更多信息可参考访问密钥帮助文档

环境检查

PHP版本需要不低于7.1。

获取与安装

推荐使用composer安装火山引擎SDK for PHP:

相关配置

安全凭证配置

火山引擎SDK for PHP支持以下几种方式进行凭证管理:

注意:代码中Your AK及Your SK需要分别替换为您的AK及SK。

方式一:在Client中显式指定AK/SK (推荐)

方式二:从环境变量加载AK/SK

方式三:从HOME文件加载AK/SK

在本地的~/.volc/config中添加如下内容:

其它资源

示例参见examples


All versions of volc-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version *
ext-json Version *
google/protobuf Version *
google/gax Version *
ext-openssl Version *
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 volcengine/volc-sdk-php contains the following files

Loading the files please wait ....