Giter Club home page Giter Club logo

veimagex-sdk-php's Introduction

火山引擎 VeImageX SDK for PHP

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

前置准备

服务开通

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

获取安全凭证

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

获取与安装

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

$ composer require xiaosau/veimagex-sdk-php

相关配置

安全凭证配置

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

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

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

$client = Iam::getInstance();
$client->setAccessKey(Your AK);
$client->setSecretKey(Your SK);

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

VOLC_ACCESSKEY="Your AK"  
VOLC_SECRETKEY="Your SK"

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

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

  {
    "ak": "Your AK",
    "sk": "Your SK"
  }

##其它资源 示例参见examples

veimagex-sdk-php's People

Contributors

xiaosau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.