byteplus_sdk/byteplus-sdk-php

BytePlus SDK for PHP

v1.0.9 2025-03-27 10:58 UTC

This package is auto-updated.

Last update: 2025-03-27 12:35:18 UTC


README

composer require

composer require byteplus_sdk/byteplus-sdk-php

Region Setting

  • Currently one region
    - ap-singapore-1
    
  • Default ap-singapore-1, Specify region as param in init function if needed:
    $client = Iam::getInstance('us-east-1');

AK/SK Setting

  • Use VodService method setAccessKey/setSecretKey in code

  • Set env variables BYTEPLUS_ACCESSKEY="your ak" BYTEPLUS_SECRETKEY = "your sk"

  • json file at ~/.byteplus/config:{"ak":"your ak","sk":"your sk"}

Above will take precedence from high to low

More examples:

example