gxchain / baas-sdk-php
gxchain baas sdk implemented in php.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/gxchain/baas-sdk-php
Requires
- php: >=7.0.0
- gxchain/common-sdk-php: v1.0.1
- gxchain/http-sdk-php: v1.0.1
This package is auto-updated.
Last update: 2025-10-22 17:07:41 UTC
README
Introduction
This is a php library. If you just enjoy the BaaS service. you can go to BaaS API.
Storage Usage
composer require "gxchain/baas-sdk-php"
use GXChain\BaaS\BaaSClient;
$config = [
    'url'  => [
        'fee'   => 'https://baas-developer.gxchain.cn/api/storage/provider/',
        'store' => 'https://baas-developer.gxchain.cn/api/storage/store/',
        'get'   => 'https://baas-developer.gxchain.cn/api/storage/data/',
    ],
    'base' => [
        'from'         => '1.2.XXX',
        'to'           => '1.2.241',
        'proxyAccount' => '1.2.241',
        'percent'      => 0,
        'assetId'      => '1.3.1',
        'privateKey'   => 'XXX',
    ],
];
$obj = new BaaSClient($config);
//store
$res = $obj->store('hello gxs php ssdk v1.0.1');
echo $res;
//storeGet
// $cid = 'Qmb3eECKK9rAJbG7BpFgGxeSFDH9nkie6XugxJJUqVQUUK';
// $res = $obj->storeGet($cid);
// echo $res;