haydarsahin / byteplus-sdk-php
Byteplus PHP SDK community edition
Installs: 88
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 6
pkg:composer/haydarsahin/byteplus-sdk-php
Requires
- php: >=7.1
- ext-json: *
- ext-openssl: *
- google/gax: *
- google/protobuf: *
- guzzlehttp/guzzle: ^7.5
This package is auto-updated.
Last update: 2025-01-21 19:15:12 UTC
README
composer require
composer require haydar/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:
You can find examples for every service under the examples folder.